day 10 形態學處理 膨脹

#-*- coding:utf-8 -*- #1.導入包 import cv2 import numpy as np #2.導入圖片 img = cv2.imread('home.jpg',0) #3.設置卷積核 5x5矩形卷積核 kernel = np.ones((5,5),np.uint8) print(kernel) kernel2 = cv2.getStructuringEleme
相關文章
相關標籤/搜索