Demo Video Link: https://youtu.be/EFACJ6n8zPc
Step-by-Step Guide to Setting Up and Running the Application
-
Clone the Repository
git clone https://github.com/williyam-m/Flipkart_Grid_6_0.git
-
Create a Virtual Environment
python -m venv venv
-
Activate the Virtual Environment
- On Windows:
venv\Scripts\activate
- On Linux/macOS:
source venv/bin/activate
- On Windows:
-
Install Required Packages
pip install -r requirements.txt
-
Run the Application
python manage.py runserver
- Predicts the freshness and identifies the class (type) of fruits and vegetables.
- Utilizes a model I trained using a dataset from Kaggle with MobileNetV2 as the base model in TensorFlow.
- Extracts product details such as MRP, EAN, manufacture date, and expiry date using OCR powered by Pytesseract.
- Processes the text to validate the expiry date of the product.
- Counts and highlights products within an image.
- Employs the EfficientDet model from TensorFlow Hub.
Download the dataset from Kaggle.
This dataset contains images of the following fruits and vegetables items:
Fresh fruits- fresh banana, fresh apple, fresh orange, fresh mango and fresh strawberry.
Rotten fruits- rotten banana, rotten apple, rotten orange, rotten mango and rotten strawberry.
Fresh vegetables- fresh potato, fresh cucumber, fresh carrot, fresh tomato and fresh bell pepper.
Rotten vegetables- rotten potato, rotten cucumber, rotten carrot, rotten tomato and rotten bell pepper.
-
Tesseract : https://github.com/tesseract-ocr/tesseract
-
Pytesseract : https://pypi.org/project/pytesseract/
- Django Documentation: https://docs.djangoproject.com/
- Python Official Documentation: https://docs.python.org/3/
- Keras : https://keras.io/
- TensorFlow : https://www.tensorflow.org/
- MobileNetV2 : https://keras.io/api/applications/mobilenet/
- OpenCV : https://opencv.org/
- SQLite : https://www.sqlite.org/index.html