Python HoughLines Does Not Return Votes (4.1)

asked 2019-05-02 14:03:32 -0500

mfischer-gundlach gravatar image

updated 2019-05-02 14:17:40 -0500

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

edit retag flag offensive close merge delete

Comments

no idea if it helps, but from c++, you'd have to pass a vector<Vec3f> for lines. (3rd Vec component is the resp. accumulator value)

berak gravatar imageberak ( 2019-05-04 09:55:10 -0500 )edit