# -*- coding: utf-8 -*-
# @Time : 2021/4/15 21:47
# @Author : Zhang Jun
# @File : main2.py
# @Software: PyCharm
import cv2
kernel_size = (5, 5)
sigma = 1.5
img = cv2.imread('lenna.jpeg')
# 显示图片
cv2.imshow('img',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
# 高斯平滑滤波
img_Gau = cv2.GaussianBlur(img, kernel_size, sigma)
# 显示图片
cv2.imshow('img_Gau',img_Gau)
cv2.waitKey(0)
cv2.destroyAllWindows()