Ask Your Question

Revision history [back]

Ok looking at the input image you gave me, I would suggest the following approach for detecting the objects.

  1. Take the blue channel from your RGB image
  2. Normalize the blue colour channel for the other colours
  3. Look for local maxima (using some threshold region) in that image, it will be points with high blue components
  4. Create a binary mask for those maxima found
  5. Assign contours to those regions
  6. Calculate center points for those regions
  7. Use the blobs or the center points to actually track the ball

Some guides that could be usefull