/ia-frutas

Primary LanguagePython

Detección de Naranjas en buenas y malas

Dataset

Naranjas Buenas

Naranjas Buenas

Naranjas Malas

Naranjas Malas

Version de Python

Python 3.10

Instalación del entorno

virtualenv --python=python3.10 .venv

source venv/bin/activate

pip install -r requirements.txt

PyTorch

Recorte y preparacion de imagenes

Recorte

Las fotografias tomadas se recortaron usando la aplicacion gThumb

Recorte de fotos

Redimensionamiento de imagenes

Para redimensionar a un tamaño de 500x500 se usó el utilitario convert de linea de comandos.

find . -maxdepth 1 -iname "*.jpg" | xargs -L1 -I{} convert -resize 500x500 "{}" resize/"{}"

Entrenamiento

python training

Logs

Valid Loss and Train Loss

Valid Loss and Valid Accuracy

Pruebas

python testing

Test 1

Test 2

Test 3

Test 4

Test 5

Test 6

Test 7

Test 8

Test 9

Test 10

Test 11

No. ETIQUETADA SEGUN MODELO %
1 BUENA BUENA 70
2 BUENA BUENA 70
3 BUENA BUENA 70
4 BUENA BUENA 70
5 MALA MALA 65
6 MALA MALA 65
7 MALA MALA 62
8 MALA MALA 71
9 MALA MALA 70
10 MALA MALA 70
11 MALA MALA 68

Camara

python pyqt6cam

Basado en

https://iqraanwar.medium.com/how-to-detect-rotten-fruits-using-image-processing-python-be2d39abc709

https://github.com/IqraBaluch/Detection-of-Rotten-Fruits-DRF-Using-Image-Processing-Python

Automatic classification of oranges using image processing and data mining techniques (Argentina)

https://core.ac.uk/download/pdf/296347784.pdf

An extensive dataset for successful recognition of fresh and rotten fruits

https://www.sciencedirect.com/science/article/pii/S2352340922007594

Fresh and Rotten Fruits Dataset for Machine-Based Evaluation of Fruit Quality (DATASET)

https://data.mendeley.com/datasets/bdd69gyhv8/1

https://data.mendeley.com/public-files/datasets/bdd69gyhv8/files/ccd1f142-03b2-473a-8c78-78920e63b8bd/file_downloaded