Kailegh
Kailegh

Reputation: 197

Are there other methods to detect circles apart from HoughCircles

I am trying to detect circular road signs and I have some issues.

The HoughCircles function detects circles in a gray image, however with the same parameters but the image binarized (the circle is still perfectly visible) it does not detect any circle. I do not why it fails a lot with a binarized image. Any ideas why I have this issue with binary images?

To try to correct that I set the dp parameter to 2 and changed the threshold. In the binary image I now detect circles, but it also gives me a lot of false positives. I do not understand what the dp parameter is, or how to use it.

If there is no way to make it work, I would like to know if there is any other way of detecting circles in an image.

Upvotes: 1

Views: 1700

Answers (1)

Martin Beckett
Martin Beckett

Reputation: 96167

Hough generally works well with bad data - partial or obscured circles and noise.

But it is sensitive to the tuning parameters (max, min diameter, number of votes for a result).

Typically you could run hough to find all possible circles and then examine each possible circle by eg checking distance from center to points on the circumference. Or you could look at found circle diameters and then refine your diameter/vote bins, especially if this is a video stream and you expect the circles to be similar in the future.

Upvotes: 0

Related Questions