OpenCV2-Python-Tutorials icon indicating copy to clipboard operation
OpenCV2-Python-Tutorials copied to clipboard

Update to Probabilistic Hough Transform example

Open samryan18 opened this issue 5 years ago • 0 comments

It looks like the dimensions were off in the loop adding the lines within the example. The shape returned by HoughLinesP was (num_lines, 1, 4) so to iterate through the nested list, I needed to use

for x1,y1,x2,y2 in lines[:,0]:
    ...

samryan18 avatar Mar 14 '19 18:03 samryan18