houghcircles max radius seems to be off

asked 2013-11-28 12:09:38 -0500

the_phet gravatar image

I am using the Python bindings, and using HoughCircles to detect circles. The code seems to be working OK, but I have detected that there seems to some offset between the max radius parameter and the radius of the circle returned.

For example, I set max radius to 275, and it is not returning anything. I set max radius to 300, and it returns me a circle with a radius of 240, as expected.

This is the way I call it:

circles = cv2.HoughCircles( cimg, cv2.cv.CV_HOUGH_GRADIENT, 2, 60, param1=50, param2=100, minRadius=200, maxRadius=275)

As said, the maxradius seems not to match exactly the radius of the circles

edit retag flag offensive close merge delete