
YOLOv8n Fruit Detection
Computer vision detection and fruit ripeness classification.
An intelligent fruit ripeness detection and automated sorting prototype developed using YOLOv8n deep learning and Raspberry Pi 4. The system uses computer vision to identify fruit ripeness conditions and classify detected fruit into three categories: Unripe, Ripe, and Overripe. The project explores edge AI, real-time image processing, and automated sorting to support more consistent fruit quality classification.
Fruit ripeness identification is traditionally performed through manual visual inspection, which can be time-consuming and affected by differences in human judgment. This project investigates an intelligent classification approach using machine learning and computer vision to identify ripeness levels. The main engineering challenge is integrating an AI detection model with an embedded processing platform while preparing the system for an automated sorting mechanism.
The prototype has demonstrated fruit ripeness classification using a trained YOLOv8n model. Initial image tests produced confidence scores of approximately 86% for a ripe banana, 71% for an unripe apple, and 61% for an overripe mango. The model was exported to ONNX and tested on Raspberry Pi 4 using camera-based inference. Live detection, ripeness counters, and prediction stabilization were implemented. These confidence scores represent individual predictions rather than overall model accuracy. Full physical sorting integration and end-to-end system validation remain future development activities.
Current development focuses on AI detection, Raspberry Pi deployment, camera integration, and prototype testing. Planned improvements include additional dataset collection, model evaluation, physical sorting integration, and testing of sorting reliability. Final system performance should be confirmed through controlled testing.
A visual look at the hardware, development process and technical implementation.

Computer vision detection and fruit ripeness classification.

Edge computing platform for camera-based AI inference.

Hardware development, integration and prototype testing.