发布时间:2022-08-19 13:24
img = cv.imread('test.jpg')
kernel = np.ones((5, 5), np.uint8) #创建核结构
erosion = cv.erode(img, kernel)
dilate = cv.dilate(img, kernel)
cv.imshow('erosion', erosion)
cv.imshow('dilate', dilate)
cv.waitKey(0)
img = cv.imread('test.jpg')
kernel = np.ones((10, 10), np.uint8)
open = cv.morphologyEx(img, cv.MORPH_OPEN, kernel)
close = cv.morphologyEx(img, cv.MORPH_CLOSE, kernel)
cv.imshow('open', open)
cv.imshow('close', close)
cv.waitKey(0)
img = cv.imread('test.jpg')
kernel = np.ones((10, 10), np.uint8)
top = cv.morphologyEx(img, cv.MORPH_TOPHAT, kernel)
black = cv.morphologyEx(img, cv.MORPH_BLACKHAT, kernel)
cv.imshow('top', top)
cv.imshow('black', black)
cv.waitKey(0)
【MOCO基础】Pointer Networks原理及代码实现分析(Oriol Vinyals, 2015)
【论文笔记】Video Transformer Network
用 Python 画一张北京实时疫情地图:从爬虫到绘图到自动上传服务器
Python中小海龟turtle.circle()函数的理解
关于Pandas count()与values_count()的用法及区别
提名 Apache ShardingSphere Committer,说说方法
pytorch_lesson16.1 OpenCV索贝尔算子/拉普拉斯算子调用+pytorch中构建cnn+复现经典模型(LeNet5+AlexNet)