how to I set angle range in houghlinesP or houghlines

asked 2014-05-18 22:29:50 -0600

UGIF gravatar image

I just want to find horizontal line in document. So I want to find line in angle -5~5 degree. (maybe you know if I take a picture. it has curved line coz camera captured image) Then how can I set the parametor for this?

edit retag flag offensive close merge delete

Comments

Check the distance and angle resolution parameters (called Rho and Theta) in the HoughLines and HoughLinesP functions. Just use larger values to make the detection more robust.

kbarni gravatar imagekbarni ( 2014-05-19 04:40:00 -0600 )edit