赞
踩
《OpenCV系列教程》
项目位置:OpenCV-Sample
代码位置:16-ImageBlur.py
import cv2
img = cv2.imread('./res/mini.jpeg')
cv2.imshow('org', img)
kernelsizes = [(3,3), (9,9), (15, 15)]
for kernel in kernelsizes:
gaussian = cv2.GaussianBlur(img, kernel, 0)
cv2.imshow('Gaussian : ' + str(kernel), gaussian)
cv2.waitKey(0)
cv2.destroyAllWindows()
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。