Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jluisrojas/fruteria
Code for the research "Fruit Classification for Retail Stores using Deep Learning" MCPR2020
https://github.com/jluisrojas/fruteria
convolutional-neural-networks deep-learning intelligent-systems
Last synced: 11 days ago
JSON representation
Code for the research "Fruit Classification for Retail Stores using Deep Learning" MCPR2020
- Host: GitHub
- URL: https://github.com/jluisrojas/fruteria
- Owner: jluisrojas
- License: mit
- Created: 2019-07-18T02:35:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T23:10:26.000Z (almost 5 years ago)
- Last Synced: 2024-11-06T05:24:28.854Z (2 months ago)
- Topics: convolutional-neural-networks, deep-learning, intelligent-systems
- Language: Jupyter Notebook
- Homepage:
- Size: 246 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FruterIA 🍎🍊🍌
You can find the final report [here](report/MCPR2020_paper.pdf).
## 🍉 Abstract
Payment of fruits or vegetables in retail stores normally require them to be manually identified. This paper presents an image clas- sification method, based on lightweight Convolutional Neural Networks (CNN), with the goal of speeding up the checkout process in stores. A new dataset of images is introduced that considers three classes of fruits, inside or without plastic bags. In order to increase the classification accuracy, different input features are added into the CNN architecture. Such inputs are, a single RGB color, the RGB histogram, and the RGB centroid obtained from K-means clustering. The results show an overall 95% classification accuracy for fruits with no plastic bag, and 93% for fruits in a plastic bag.
## 🍇 Setup
The packages needed are the following:
* tensorflow >= 2.0
* numpy
* OpenCV2
* matplotlib
* pandas
* seaborn
* fire
* keract
* gopro-python-api
* pydotFor training the model with the AOB dataset:
```
python train_AOB.py
```
To test using a GoPro, first make sure you are connected to the camera via WiFi then run:
```
python gopro_stream.py
python aob_cam.py
```## 🍓 Training
We use the keras implementation of MobileNetV2 architecture and use transfer learning to imporve accuracy with a small dataset.## 🍑 Dataset
For this investigation a dataset was created, contains images of apples, oranges and bananas(AOB Dataset). The images contain from one fruit to 3 frutis of the same type, and there is also photos inside of a platic bag, in total the dataset consits of 725 images for training and 342 for testing. Also there are scripts for transforming the dataset to a TFRecord to use with the Tensorflow Dataset API. The dataset directory can be found [here](src/datasets/AOBDataset/).
![alt text](https://github.com/JoseLuisRojasAranda/FruterIA/blob/master/assets/dataset.png)