Skip to content

Instantly share code, notes, and snippets.

@init27
Last active September 2, 2018 06:47
Show Gist options
  • Save init27/6b21c65cb835dae70744456e686f6e48 to your computer and use it in GitHub Desktop.
Save init27/6b21c65cb835dae70744456e686f6e48 to your computer and use it in GitHub Desktop.
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