Last active
September 2, 2018 06:47
-
-
Save init27/6b21c65cb835dae70744456e686f6e48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import cv2 | |
image = cv2.imread("data/ResizedImage.jpg") | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
cv2.imshow("Original", image) | |
kernelSizes = (15, 15) | |
blurred = cv2.blur(image, kernelSizes) | |
cv2.imshow("Average (15, 15)", blurred) | |
cv2.waitKey(0) | |
cv2.imwrite("data/blur.jpg",blurred) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment