其他分享
首页 > 其他分享> > candy边缘检测

candy边缘检测

作者:互联网

from imutils import *
image = imread('image/school.jpg')
show(image)

def edge_detection(image,minVal=100,maxVal=200):
    image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY)
    edges = cv2.Canny(image,minVal,maxVal)

    plt.imshow(edges,'gray')
    plt.axis('off')
    plt.show()

edge_detection(image)

 

标签:maxVal,plt,show,检测,image,cv2,candy,detection,边缘
来源: https://www.cnblogs.com/yunshangyue71/p/13584418.html