Which algorithm to use to find the (x,y) of the ends of the lines or their intersection?

For example:
How can I do better?
Thanks in advance for answers
June 14th 19 at 20:16
2 answers
June 14th 19 at 20:18
Well, classically, the problem of finding the intersection of two straight lines is solved by the solution (tautology?) a system of two equations, each of which describes a straight line.
More accurately offer you a solution only with what is sane data for the task. For example, how do you describe the segments?
This input data, the thickness and position of the lines can be any - - clarissa86 commented on June 14th 19 at 20:21
June 14th 19 at 20:20
Use one of the feature detector.

I think FAST fit

Find more questions by tags image processing