Educational project associated with image processing and machine learning. Program must first be fed with prepared data. It uses k-NN algorithm for classification.
- gtk2
- opencv
- sklearn
- Clone this repository:
git clone https://github.com/joanna-solomiewicz/Fruit-detector.git
- Feed application:
python feed.py --directory /path/to/directory/with/feed/data/
Images in this directory must be named in following convention:
FruitName[_Type].Number.jpg
e.g. Apple_green.1.jpg
- Recognize fruits
python recognition.py --image /path/to/image/with/fruits/