Ask Your Question
0

Lines recognition in opencv

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

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
0

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

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: http://docs.opencv.org/modules/imgproc/doc/feature_detection.html?highlight=hough#houghlines and in the current trunk another Method named "LSD" exists: http://docs.opencv.org/trunk/modules/imgproc/doc/feature_detection.html?highlight=lsd#linesegmentdetector .

Good Luck!

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 193 times

Last updated: Feb 15 '14