Home > Software engineering >  Transform contour line as straight line
Transform contour line as straight line

Time:05-26

I have this image: Lines I extracted lines using

    contours, hierarchy = cv2.findContours(image, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE)

I have 4 contours then. My goal is to convert this lines as infinite straight lines (so I can detect overlap points of those lines then. Is this somehow possible? I tried hough lines, but it gives unpredictable solutions, in some cases lines doesnt have enough length, or there is much more lines than just one.

CodePudding user response:

You can use enter image description here

Now you can find the intersection between equations.

  • Related