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