Hi there,
For fun, I have been trying to do a skittles counter. I am almost there except for a few candies which are to close together to make them easily separated for the program.
I mostly followed this website to create the program.
The program does not use hough circle to detect the candies, but peaks using distance transform.
The program and an example file is attached here.
Thanks for helping