OpenCV2-Python-Tutorials
OpenCV2-Python-Tutorials copied to clipboard
Update to Probabilistic Hough Transform example
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]:
...