Skip to content

Simple Flask web app able to distinguish between real world images of Apples, Bananas, Oranges with predicting weather the fruit in image is Fresh or Rotten with respective probabilities on real-time hosted web service (Heroku)

Notifications You must be signed in to change notification settings

Adk2001tech/fruit-classifier-and-quality-checker-FLASK_api

Repository files navigation

Healthy Fruit Lead App

Table of Content

Demo

Link:
https://fruit-classifier-quality-check.herokuapp.com

forthebadge

Overview

  • Simple Flask app fitted with Deep Conv. neural network model which is able to distinguish between real world images of Apples, Bananas, Oranges with predicting weather the fruit in image is Fresh or Rotten with respective probabilities.
  • Data to train this DNN is collected in (/data) folder, which is done with the help of google search and downloading each image from it. This section is more explored in 'Data collection' topic below

Motivation/Purpose

After completing the 4th course(CNN) of deep learning specialization. I was super excited to implement the knowledge I gained in practical and productional way by doing an end to end project with following purposes.

  1. This application/technique can be applied to material selection procedure in productional sector of companies making...
  • Fruit juices
  • Pickles
  • Tomato sauces
  • etc. in commercial scale.
2. Want to give enlightenment to beginners in learning flask as well as to train DNN and hypertune it to get better performance !
3. Want to make more advancement in this project to serve the dealers who work in food checking & transportation, So they can monitor/check the condition of their stock at any time they want.

Technical Aspect

This project is divided into Four major parts:

  1. Train deep CNN model from kaggle on basic and clear images of our targets which I want to classify. Purpose behind this approach is to let our model figure out the basic lines, curves, edges, etc first and then retrain it for classifying my target on real world images!!

  2. Retraining model on real world data/images and hypertune it for better performance.

  3. Setting up Frontend for website.

  4. Building and hosting a Flask web app on Heroku(Platform as a service)

Data collection

As we know data is building block of Data science!
I had collected around 400+ unique images of fruits and 400+ images of for quality detection. You can download it for your project from (/data) folder.

Installation

The Code is written in Python 3.7 in an anaconda environment. For anaconda instalation click here.To make new environment in anaconda run following commands in your Anaconda Prompt.

conda create -n your_env_name python=3.7.x

Run

After successfully creating anaconda environment, install the required packages and libraries by running this command in the project directory after cloning the repository:

pip install -r requirements.txt

then by running the following command, it will host this page in your local port and will also give you local link, which you can put in any web browser.

python app.py

Deployement on Heroku

Vist here for details.

Directory tree


Technologies Used


About

Simple Flask web app able to distinguish between real world images of Apples, Bananas, Oranges with predicting weather the fruit in image is Fresh or Rotten with respective probabilities on real-time hosted web service (Heroku)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages