I remixed the original project to make my colored ball (15 mm dia) sorter. Uses a Raspberry Pi and PiCam with OpenCV to detect the ball color and move servo motors to sort the ball into one of the four bins. This was for a school project BCIT ELEX 4618.
More Info: Colored Ball Sorter with PiCam and OpenCV – Raghav Marwah
The author remixed this model.
Remixed to sort 15mm diameter balls into 4 colours, new mount plate for a PiCam, 360-degree rotating disc with 4 spots for balls to make sorting faster. New sort bucket with raised walls to prevent balls from bouncing out.