Lines recognition in opencv
Hello everybody.
I have a problem where I need to recognize some lines inside a bmp image.
I am able to get some matches from the image and I am trying to reject the bad matches.
For example I have to reject this match:
while I have to accept this match:
I am not looking for the solution, I just want to ask if there is or not some method to check if a set of points is an approximation of a line, or if there is some method/algorithm that can be useful to solve my problem.
Thank you for any advice ;)