标签:image ali span play -- read 滤波 code png
双阈值检测
img=cv2.imread("lena.jpg",cv2.IMREAD_GRAYSCALE) v1=cv2.Canny(img,80,150) v2=cv2.Canny(img,50,100) res = np.hstack((v1,v2)) cv_show(res,‘res‘)
效果:
img=cv2.imread("car.png",cv2.IMREAD_GRAYSCALE) v1=cv2.Canny(img,120,250) v2=cv2.Canny(img,50,100) res = np.hstack((v1,v2)) cv_show(res,‘res‘)
效果:
标签:image ali span play -- read 滤波 code png
原文地址:https://www.cnblogs.com/SCCQ/p/12291488.html