how to I set angle range in houghlinesP or houghlines
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?
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.