Description:
The model used in this GUI (TomaTect App) is a combined Fuzzy and YOLOv8 algorithms named Fuzzy YOLOv8.pt that could detect fresh / rotten tomato from a picture of tomato.
Steps to use the GUI:
- Your Python's version must be: 3.10 <= Python's Version < 3.12
- Open Windows Terminal / Powershell
pip install ultralytics==8.0.48pip install pyside6==6.4.2- Go to your preferred directory path to clone this Repository using
cd [directory path] git clone [repository URL]cd Tomato-Detection-Fuzzy-YOLOv8python main.py
Notes:
- If you want to use your own trained YOLOv8 model, you should put your
.ptfile (which you usually know asbest.ptfile) into themodelsfolder. - If you checked the Save settings, the detection results will be saved in the
runfolder. - The UI design file is
home.uifile, structured in PySide6. If you modify this file, you should runpyside6-uic -o ui/home.py home.uiin your Windows Terminal / Powershell, then changeimport resources_rcintoimport ui.resources_rcin line 23 of thehome.pyfile, then runpython main.pyagain to see the result. - The resource file is
resources.qrcfile. If you modify, delete, or add new images files path in this file, you should runpyside6-rcc -o ui/resources_rc.py resources.qrcin your Windows Terminal / Powershell, then runpython main.pyto see the result. - The version of your Python, Ultralytics, and PySide6 must be the same as mentioned in "Steps to use the GUI".
- The
ultralyticslibrary follows the GPL-3.0 License (GNU General Public License Version 3), so if you need commercial use, you need to obtain its license first.
References: