1 | initial version |
Increase the min_dist
parameter for the circles centers as said by @thdrksdfthmn. It is the distance between two neighboring circle centers. Keep in mind that all edges in an image contribute to a possible circle, that is why HoughCircles always finds more circles than we need if you do not adapt the parameters correctly.
2 | No.2 Revision |
Copied from @thdrksdfthmn:
I would try to do a mean of the circles if their ratios are almost the same and the distances between the centers is less than the ratio. But have you tried to play with min_dist parameter? I have seen that you have set it to 10, why?
Added myself:
Increase the min_dist
parameter for the circles centers as said by @thdrksdfthmn. It is the distance between two neighboring circle centers. Keep in mind that all edges in an image contribute to a possible circle, that is why HoughCircles always finds more circles than we need if you do not adapt the parameters correctly.