There are a couple methods I know of :
1. My primary method is HSV color detection, which is quite basic because it only detects balls with solid colors. Tracking striped balls using HSV is difficult because the stripes wobble, and the ball might look completely different in the next frame.
I...