Skip to content

Instantly share code, notes, and snippets.

@rahim42324
Created June 23, 2020 14:56
Show Gist options
  • Select an option

  • Save rahim42324/3b9915c444926e8c4eeaf23fc9e292a8 to your computer and use it in GitHub Desktop.

Select an option

Save rahim42324/3b9915c444926e8c4eeaf23fc9e292a8 to your computer and use it in GitHub Desktop.
MedianBlur
# importing libraries
import cv2
import numpy as np
image = cv2.imread('fruits.jpg')
cv2.imshow('Original Image', image)
cv2.waitKey(0)
# Median Blur
median = cv2.medianBlur(image, 5)
cv2.imshow('Median Blurring', median)
cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment