Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahmoudimus/ac13eb9062fb6ae683a2d1a4aedb73ed to your computer and use it in GitHub Desktop.
Save mahmoudimus/ac13eb9062fb6ae683a2d1a4aedb73ed to your computer and use it in GitHub Desktop.
from matplotlib import pyplot as plt
import cv2
img = cv2.imread('/Users/mustafa/test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.imshow(gray)
plt.title('my picture')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment