Ask Your Question

Lines recognition in opencv

asked 2014-02-14 14:54:06 -0500

ed3dalltime gravatar image

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:

image description

while I have to accept this match:

image description

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 ;)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-02-15 08:41:14 -0500

Guanta gravatar image

Looks difficult, since you don't have real clear edges. But anyways you could at least try the algorithms which are part of OpenCV, e.g. HoughLines (and the probabilistic version HoughLinesP), see: and in the current trunk another Method named "LSD" exists: .

Good Luck!

edit flag offensive delete link more

Question Tools


Asked: 2014-02-14 14:54:06 -0500

Seen: 128 times

Last updated: Feb 15 '14