Color recognition works to identify different color candies in an image.
Install dependencies
pip install -r requirements.txt
To count the number of colored candy in an image
python color_detect.py -i 'path to image'
python color_detect.py -i ./images/image1.jpg
In the same directory you are running the program a file out.jpg
with the color count showing on the image will be created.
- A sample output.Code is still buggy.
- Allow color count in videos.