Reputation: 649
I am trying to detect a ball in an filtered image. In this image I've already removed the stuff that can't be part of the object. Of course I tried the HoughCircle function, but I did not get the expected output. Either it didn't find the ball or there were too many circles detected. The problem is that the ball isn't completly round.
Screenshots:
I had the idea that it could work, if I identify single objects, calculate their center and check whether the radius is about the same in different directions. But it would be nice if it detect the ball also if he isn't completely visible. And with that method I can't detect semi-circles or something like that.
EDIT: These images are from a video stream (real time).
What other method could I try?
Upvotes: 4
Views: 2285
Reputation: 1927
Looks like you've used difference imaging or something similar to obtain the images you have..? Instead of looking for circles, look for a more generic loop. Suggestions:
Hope this helps.
Upvotes: 5