Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Python HoughLines Do Not Return Votes (4.1)

Hey there,

I am using OpenCV 4.1 and want to get the votes found by HoughLines. When using

lines = cv2.HoughLines(canny_image, 1, np.pi / 180 , 10)

I am awarded by an n-by-1-by-2 array, missing the third column with votes.

How can I use the API to return the votes?

I double checked the OpenCV version, at runtime with

cv2.__version__

which returned 4.1.0.

Thank you in advance,

Best, Moritz

Python HoughLines Do Not Return Votes (4.1)

Hey there,

I am using OpenCV 4.1 and want to get the votes found by HoughLines. When using

lines = cv2.HoughLines(canny_image, 1, np.pi / 180 , 10)

I am awarded by an n-by-1-by-2 array, missing the third column with votes.

How can I use the API to return the votes?

I double checked the OpenCV version, at runtime with

cv2.__version__

which returned 4.1.0.

Thank you in advance,

Best, Moritz