I want to track different kinds of ball. e.g., football, basketball, table tennis ball, or cricket ball. There is a catch! But only one at a time!
If I keep a basketball in front of a camera and press a switch then I should be only detecting a basketball all the time, and not other balls. How to write the code in OpenCV for that? Is there an algorithm I can use here?
I am thinking to have a switch to Raspberry Pi to select a ball which would be in front of the camera.