import numpy as np
import cv2
img=cv2.imread('lena.jpg',0)
v1=cv2.Canny(img,80,150)
v2=cv2.Canny(img,50,100)
res=np.hstack((v1,v2))
cv2.imshow('res',res)
cv2.waitKey(0)
cv2.destroyAllWindows()
openv打卡41-43: 边缘检测
最新推荐文章于 2023-01-14 00:04:02 发布