Skip to content

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.

Notifications You must be signed in to change notification settings

Adarsh-Kumar001/Flask-ShelfLife-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Flask YOLO Object Detection API

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.

๐Ÿš€ Features

  • ๐Ÿ“ธ 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.

๐Ÿ“‚ Files in This Repo

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

Dataset

Link

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages