I have a H7, and added the following code to the bottom of the “find_line_segments” sample:
if l.magnitude() > 100: img.draw_line(l.line(), color = (0, 0, 255))
if l.length() <= 35: img.draw_line(l.line(), color = (0, 255, 0))
It runs, but regardless of a change in the magnitude, or length values, the green and blue lines drawn to screen barely change, and I barely get one or two. I would have thought changing magnitude to >1 would produce many blue lines?
Thanks in advance