This is a Flask API that uses the YOLOv8 model to detect fresh and rotten fruits/vegetables.
It predicts whether a vegetable/fruit should be removed from the shelf and provides the estimated shelf life if it's fresh.
- ๐ธ Upload an image to detect objects using YOLOv8.
- ๐ Classify fresh or rotten vegetables/fruits.
- โณ Estimate shelf life for fresh items.
โ ๏ธ Warn if an item should be removed from the shelf.
File | Description |
---|---|
app.py |
Flask API for YOLO object detection |
requirements.txt |
List of required dependencies |
test.jpg |
Sample test image |
best_yolov8_shelf_life.pt |
YOLOv8 ML model file |