Note

OpenCV (20) - Gaussian Blur 본문

Deep Learning/Computer Vision

OpenCV (20) - Gaussian Blur

알 수 없는 사용자 2022. 6. 14. 01:00
728x90
# Gaussian Blur

import cv2
image = cv2.imread('gray_image.jpg')
plt.imshow(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))
plt.show()

# kernel_size : 홀수
dst = cv2.GaussianBlur(image, (5,5), 0)
plt.imshow(cv2.cvtColor(dst, cv2.COLOR_BGR2RGB))
plt.show()
Comments