cv.HoughLinesP(img,lines,rho,theta,thresold)
参数 | 描述 |
---|---|
img | 输入图像 |
lines | 输出直线的坐标 |
rho | 像素每次迭代的大小(每一次选取像素的过程跳跃多少,一般设置为1) |
theta | 角度累加器的大小(即直线参数theta,一般为pi/180) |
thresold | 超过设定阈值才被检测出线段,值越大,基本上意味着检出的线段越长,检出的线段个数越少。根据情况推荐先用100试试 |
minLineLength | 线段的最小长度 |
maxLineGap | 同一方向上两条线段判定为一条线段的最大允许间隔 |
参考文献:
https://blog.csdn.net/qq_41905045/article/details/81707646
https://docs.opencv.org/3.4.3/d6/d10/tutorial_py_houghlines.html
https://blog.csdn.net/dcrmg/article/details/78880046
http://johnhany.net/2013/11/dft-based-text-rotation-correction/
https://blog.csdn.net/qq_36387683/article/details/80530709