Skip to content

This repository contains a Fresh or Stale Detection application that uses the K-Nearest Neighbors (KNN) algorithm to classify fruits and vegetables.

Notifications You must be signed in to change notification settings

bimarakajati/Fresh-or-Stale-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fresh or Stale Detection

This repository contains a Fresh or Stale Detection application that uses the K-Nearest Neighbors (KNN) algorithm to classify fruits and vegetables. The application can identify the freshness of the following items:

  • Apple
  • Banana
  • Bitter Gourd
  • Capsicum
  • Orange
  • Tomato

The model is trained using the dataset available at Kaggle - Fresh and Stale Images of Fruits and Vegetables.

Screenshot

Fresh or Stale Detection

Demo

You can access the live demo of the application here.

How to Run Locally

To run the application locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/bimarakajati/Fresh-or-Stale-Detection.git
  2. Install the required dependencies:

    cd Fresh-or-Stale-Detection
    pip install -r requirements.txt
  3. Run the Streamlit app:

    streamlit run app.py
  4. Open your web browser and go to http://localhost:8501.

Note

Make sure you have Python and pip installed on your machine before running the application locally.

The dataset used for training the model is available on Kaggle: Fresh and Stale Images of Fruits and Vegetables. You can explore and download the dataset from Kaggle.

Feel free to explore the code and experiment with different images to see how the model classifies the freshness of fruits and vegetables!

About

This repository contains a Fresh or Stale Detection application that uses the K-Nearest Neighbors (KNN) algorithm to classify fruits and vegetables.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages