opencv 边缘检测

#coding=utf-8
import cv2
import numpy as np  
 
img = cv2.imread("lu.jpeg", 1)
 
img = cv2.GaussianBlur(img,(3,3),0)
canny = cv2.Canny(img, 50, 150)
 
cv2.imshow('Canny', canny)
cv2.waitKey(0)
cv2.destroyAllWindows()

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

posted @ 2022-08-19 22:54  luoganttcc  阅读(25)  评论(0)    收藏  举报