Here's one way to find the longest 3 lines in an edge-detected image and highlight them in the original image using Python, OpenCV library:
main.py116 chars6 lines
main.py49 chars2 lines
main.py49 chars2 lines
main.py90 chars2 lines
main.py274 chars9 lines
main.py106 chars4 lines
Note that the line length threshold value in step 3 (200 in this example) might need to be adjusted depending on the specific edge image being analyzed.
gistlibby LogSnag