Ask Your Question
0

Explanation for the cv2.HoughCircles function parameters

asked 2016-08-12 08:52:45 -0600

sadas gravatar image

Hello,

I searched a lot but I couldn't find the documentation of this function(in Python). So could someone explain the meaning of the parameters we pass to this function or give a link to the documentation ?

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-12 09:06:51 -0600

berak gravatar image

updated 2016-08-12 10:06:39 -0600

the c++ documentation has quite detailled description:

http://docs.opencv.org/master/dd/d1a/...

also, look at the tutorial

edit flag offensive delete link more

Comments

But I call the function with only 4 parameters like this : cv2.HoughCircles(gray, cv2.cv.HOUGH_GRADIENT, 1.2, 100) I understand the first two but the 1.2 and 100 I don't understand. To what do they correspond in the c++ function ? And can I specify the radius in the Python function ?

sadas gravatar imagesadas ( 2016-08-12 09:10:09 -0600 )edit

please look again at the docs.

and sure, you can specify minRadius=... and maxRadius=... (you just have to use key=value args in python, if you omit some in the middle)

berak gravatar imageberak ( 2016-08-12 09:28:50 -0600 )edit

So what you are saying is that the Python and the c++ version of this function have the exact same parameters(in the same order also, of course except for the 2nd parameter in the c++ version)?

sadas gravatar imagesadas ( 2016-08-12 09:50:33 -0600 )edit

yes (minus the output image), as you said.

berak gravatar imageberak ( 2016-08-12 10:05:11 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-08-12 08:52:45 -0600

Seen: 467 times

Last updated: Aug 12 '16