04-图像形态学处理
b站地址:https://b23.tv/av77390697/p4
形态学-腐蚀操作
import cv2
import matplotlib.pyplot as plt
import numpy as np
get_ipython().run_line_magic('matplotlib','inline')
#腐蚀dige
img = cv2.imread('dige.png')
cv2.imshow('img',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
kernel = np.ones((5,5),np.uint8)
e
1