opencv知识点1

十一、边缘检测

cv2.Canny(img,50,100)

在这里插入图片描述
在这里插入图片描述

十二、图像轮廓

在这里插入图片描述
要复制图片再画轮廓,防止原图改变
-1代表画出所有轮廓

draw_img=img.copy()
res=cv2.drawContours(draw_img,contours,-1,(0,0,255),2)

猜你喜欢

转载自blog.csdn.net/weixin_72050316/article/details/133280249