Problem
Manual produce inspection is subjective, repetitive and difficult to operate continuously across production and retail environments.
Manual produce inspection is subjective, repetitive and difficult to operate continuously across production and retail environments.
A custom YOLOv8n detector that processes recorded video and overlays six checkpoint-defined banana-condition labels for review.
The repository includes trained weights, a runnable inference notebook and sample video. Its README reports 1,525 training images, a 2.8-hour training run and 55-second inference on the bundled video.
Spot the Rot explores a repeatable computer-vision workflow for assessing banana condition from video. Instead of relying on manual review alone, the prototype processes frames with a custom-trained YOLOv8n detector and overlays detections for later inspection. The goal is to make ripeness and condition assessment easier to review across production or retail footage. The repository positions the work as a prototype with possible uses in quality control, inventory monitoring and food-waste reduction; it does not claim a production deployment or quantified operational savings.
Implementation stays deliberately compact. A Jupyter notebook imports Ultralytics and invokes the YOLO detection command with the included best.pt checkpoint and bundled rp.mp4 sample. That directly creates an annotated-video workflow from a reproducible input-model pairing. The README says the checkpoint was trained on a custom dataset of 1,525 images using YOLOv8n. Static checkpoint metadata identifies six condition labels: freshripe, freshunripe, overripe, ripe, rotten and unripe.
The README reports a 2.8-hour training run and 55-second inference on the sample video. Those figures are project-run observations rather than portable benchmarks because the repository does not record the hardware, video duration, frame rate, resolution, confidence thresholds or train-validation split. The strongest evidence is therefore the end-to-end artifact itself: trained weights, runnable inference code, source video and linked output, while accuracy, real-time performance and operational impact remain unclaimed.
Custom YOLOv8n checkpoint for banana-condition detection.
Six checkpoint-defined labels spanning unripe through rotten states.
Single-command Ultralytics inference over a bundled test video.
Repository-linked annotated-video and evaluation visualizations.
Documented project observations covering 1,525 images, training duration and sample inference time.