image processing - HoughLinesP with slightly distorted lines in OpenCV -
image processing - HoughLinesP with slightly distorted lines in OpenCV -
i'm trying observe horizontal , vertical lines in image using houghlinesp
function in opencv. i've set rho = 1
, theta = cv_pi / 2
, minlinelength
minimum expected line length.
but turned out lines occupy more 1 line of pixels on image: shifted , forth 1 pixel due noise in image (this illustrated in attachment). in case line becomes split many shorter segments , hence not detected.
i've tried set rho = 2
decrease accumulator resolution, didn't solve problem. seems solution should pretty easy, didn't figure out yet. suggest something?
did take @ line segment detector ? http://www.ipol.im/pub/art/2012/gjmr-lsd/
opencv image-processing computer-vision hough-transform
Comments
Post a Comment