2021
09-09
09-09
python opencv检测直线 cv2.HoughLinesP的实现
cv2.HoughLines()函数是在二值图像中查找直线,cv2.HoughLinesP()函数可以查找直线段。cv2.HoughLinesP()函数原型:HoughLinesP(image,rho,theta,threshold,lines=None,minLineLength=None,maxLineGap=None)image:必须是二值图像,推荐使用canny边缘检测的结果图像; rho:线段以像素为单位的距离精度,double类型的,推荐用1.0 theta:线段以弧度为单位的角度精度,推荐用numpy.pi/180 ...
继续阅读 >