I have been working on a problem to identify the moving ball in monochromatic images in various lightning conditions using opencv. Following are the steps I had done: 1. Blurred the image using a median/Gaussian blur 2. Thresholded the image using simple thresholding 3. Found out the edges in the image using Canny Edge detector 4. To the obtained image, used Hough circle transform to find all the circular shaped objects in the image and using the circle size thresholded the unwanted circles in the image.
It is giving good results in case of uniform lightning conditions, but in case of non-uniform lightning and in case of shadows, ball is not being detected properly. Can anyone suggest any proper method to detect the moving ball in monochromatic images.