Computer Vision ยท Semester 4 ยท Kelompok 1

AI-Powered Fruit
Ripeness Detection

Classify the ripeness of bananas, strawberries, and oranges instantly using traditional computer vision โ€” HSV color features, GLCM texture analysis, and SVM classification. No deep learning required.

3 Fruit Types
3 Ripeness Stages
90% Model Accuracy
9 Total Classes
About

What is RIPE.AI?

A computer vision project built for LE01 Semester 4 โ€” Binus University

๐ŸŽฏ

Objective

Automatically classify fruit ripeness into three stages โ€” unripe, ripe, and rotten โ€” to support quality control and reduce food waste.

๐Ÿงช

Approach

Traditional computer vision pipeline using HSV color analysis and GLCM texture features, classified by a Support Vector Machine (SVM) with RBF kernel across 9 classes (3 fruits ร— 3 stages).

๐Ÿ‘ฅ

Team

Nathan Valliant ยท Angelo Bryan Widjanaka ยท Muhammad Mirza Wirya ยท Robben Ethan Athlee ยท Audi Joel Rahardja ยท Yalvin Clay

Technology

The CV Pipeline

Traditional computer vision โ€” no deep learning required

01
Image Preprocessing
Resize to 128ร—128 ยท Gaussian blur (5ร—5) ยท GrabCut segmentation for fruit segmentation from background
02
HSV Color Features
Extract mean & std of Hue, Saturation, Value channels from masked fruit pixels โ€” captures ripeness-related color transitions
03
GLCM Texture Features
Gray-Level Co-occurrence Matrix at distance=5, angles=[0ยฐ, 45ยฐ] โ€” extracts contrast, correlation, energy, and homogeneity
04
SVM Classification
StandardScaler normalization โ†’ SVC with RBF kernel, One-vs-Rest strategy ยท GridSearchCV tuned: C=[0.1,1,10], ฮณ=[scale,0.001] ยท 9-class output (3 fruits ร— 3 stages)
Features

What RIPE.AI Can Do

Two detection modes for every use case

๐Ÿ“ท

Photo Scanner

Upload any image โ€” drag & drop or browse. The pipeline extracts 47 features and classifies across 9 classes in under a second.

  • Supports JPG, PNG, JPEG, WEBP
  • Shows confidence score & probabilities
  • Displays all 12 extracted features
๐ŸŽฅ

Realtime Camera

Use your device camera for live ripeness detection. Frames are analyzed continuously, updating results in real-time.

  • Live video feed from webcam
  • Continuous frame analysis
  • Instant result overlay
๐ŸŒ

3 Fruit Types

Trained on Banana, Strawberry, and Orange โ€” chosen for maximum visual distinctiveness to improve SVM classification accuracy.

โšก

Dual Mode

Connects to Flask Python backend when available. Falls back seamlessly to browser-native JS pipeline โ€” no server needed.

๐ŸŒ™

Dark / Light Mode

Full dark and light theme support, persisted across sessions via localStorage.

๐Ÿ“Š

Full Transparency

Every prediction shows class probability distribution and all 12 raw feature values for complete interpretability.

Scanner

Scan with Photo

Upload an image of a fruit to detect its ripeness stage

๐ŸŒ Banana
๐Ÿ“ Strawberry
๐ŸŠ Orange
๐Ÿ“ท

Drop your fruit image here

Drag & drop or click to upload ยท JPG, PNG, JPEG, WEBP

Realtime

Live Camera Scanner

Point your camera at a fruit for continuous real-time ripeness detection

๐ŸŽฅ

Camera not started

Click the button below to begin

Start camera to see live results here