Skip to content

Instantly share code, notes, and snippets.

@lucapiccinelli
Created October 2, 2016 22:03
Show Gist options
  • Save lucapiccinelli/e066cd2267b22b62dfc85948f43dc105 to your computer and use it in GitHub Desktop.
Save lucapiccinelli/e066cd2267b22b62dfc85948f43dc105 to your computer and use it in GitHub Desktop.
import cv2
import matplotlib.pyplot as plt
im = cv2.imread(r'img\text.jpg', cv2.IMREAD_GRAYSCALE)
plt.imshow(im, cmap='Greys_r')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment