https://github.com/rydzze/ichigo-fruit-classifier
Project for Computer Vision
https://github.com/rydzze/ichigo-fruit-classifier
computer-vision deep-learning fruit-classification python tensorflow
Last synced: about 2 months ago
JSON representation
Project for Computer Vision
- Host: GitHub
- URL: https://github.com/rydzze/ichigo-fruit-classifier
- Owner: rydzze
- Created: 2024-12-27T06:46:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-13T01:56:49.000Z (over 1 year ago)
- Last Synced: 2025-02-13T02:35:40.400Z (over 1 year ago)
- Topics: computer-vision, deep-learning, fruit-classification, python, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 1.79 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# π Ichigo: Intelligent Multi-Fruit Classification and Quality Analysis System
## π Introduction
Traditional fruit classification methods are **labor-intensive and error-prone**. **Ichigo** is an **AI-driven system** that utilizes deep learning models like **CNN, ResNet-50, and VGG-16** to classify fruits as **fresh or rotten**. By integrating machine learning with advanced image processing, **Ichigo** enhances food quality control, reduces waste, and optimizes supply chains. Designed to be **scalable and accessible**, it serves **small farms and large food industries** alike.
## β Problem Statements
Despite advances in **computer vision and AI**, challenges persist in fruit classification:
πΈ **Manual inspection is prone to inconsistencies** β Human judgment can be subjective, leading to quality control issues.
πΈ **Limited datasets hinder classification accuracy** β AI models struggle with underrepresented fruit types.
πΈ **Scalability for real-time processing** β Many systems fail to handle large-scale, high-speed operations efficiently.
## π― Objectives
The **Ichigo** system aims to:
β
**Enhance classification accuracy** using deep learning.
β
**Enable real-time quality assessment** for efficient sorting.
β
**Ensure scalability** for farms, supermarkets, and industries.
## π₯ System Features
π **Deep Learning-Based Classification** β Uses **CNN, ResNet-50, and VGG-16**.
π₯οΈ **Web-Based Interface** β Built with **Flask, HTML, CSS, and JavaScript**.
π **Data Preprocessing Techniques** β Image **enhancement, sharpening, and edge detection**.
π **Real-Time Object Detection** β Segmentation and bounding box.
## π Model Performance
### π Public Dataset Performance (Without Preprocessing)
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---------|-------------|-------------|------------|-------------|
| **CNN** | 72.50 | 74.50 | 72.75 | 70.84 |
| **ResNet50** | **98.75** | **98.76** | **98.71** | **98.72** |
| **VGG16** | 97.03 | 97.08 | 96.92 | 96.96 |
### π Public Dataset Performance (With Preprocessing)
| Model | Accuracy (%) | Precision (%) | Recall (%) | F1-Score (%) |
|---------|-------------|-------------|------------|-------------|
| **CNN** | 72.81 | 73.01 | 72.70 | 71.88 |
| **ResNet50** | **99.22** | **99.21** | **99.20** | **99.20** |
| **VGG16** | 97.81 | 97.69 | 97.68 | 97.65 |
#### π Public Dataset Used
> Sultana, Nusrat; Jahan, Musfika; Uddin, Mohammad Shorif (2022), βFresh and Rotten Fruits Dataset for Machine-Based Evaluation of Fruit Qualityβ, Mendeley Data, V1, doi: [10.17632/bdd69gyhv8.1](https://doi.org/10.17632/bdd69gyhv8.1)
### π Self-Collected Dataset Performance (Without Preprocessing)
| Model | Accuracy 1 (%) | Accuracy 2 (%) | Average (%) |
|---------|--------------|--------------|------------|
| **CNN** | 26.00 | 24.27 | 25.14 |
| **ResNet50** | **71.00** | **78.64** | **74.82** |
| **VGG16** | 52.50 | 55.83 | 54.17 |
### π Self-Collected Dataset Performance (With Preprocessing)
| Model | Accuracy 1 (%) | Accuracy 2 (%) | Average (%) |
|---------|--------------|--------------|------------|
| **CNN** | 18.00 | 12.62 | 15.31 |
| **ResNet50** | **53.00** | **55.83** | **54.42** |
| **VGG16** | 47.50 | 58.25 | 52.88 |
#### π Self-Collected Dataset Used (Dataset 1)
> Refer to the end of this README.
## π οΈ Installation Guide
### π Prerequisites
Ensure you have the following installed:
- π **Python 3.9+**
### βοΈ Steps to Install and Run
1οΈβ£ **Clone the repository** π₯οΈ
```bash
git clone https://github.com/rydzze/Ichigo-Fruit-Classifier.git
cd Ichigo
```
2οΈβ£ **Install dependencies** π¦
```bash
pip install -r requirements.txt
```
3οΈβ£ **Run the application**
```bash
python run.py
```
4οΈβ£ **Access the system:** π
```
http://localhost:686
```
## πΈ Screenshots of User Interface



## π **Contribution**
We would like to express our gratitude to the following individuals for their contributions to Ichigo:
- [Muhammad Ariff Ridzlan](https://github.com/rydzze)
- [Muhammad Hafiz](https://github.com/IbnAsmuni)
- [Siti Nur Aisyah](https://github.com/ayesharizani)
- [Nurul Hurul Aini](https://github.com/ainiharis)
Your dedication and expertise have been instrumental in the development of this system. ππ‘
## π» Google Drive Link (Alternative)
> [Ichigo](https://drive.google.com/drive/folders/1AcXk4rswDTDdUeTO1zVb6PG-ohWoQWai?usp=sharing), including the self-collected dataset and .h5 model files.