Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from matplotlib import pyplot as plt
- import numpy as np
- import cv2
- # Load an color image in grayscale
- img = cv2.imread('images/barcode_01.jpg',cv2.IMREAD_COLOR)
- plt.imshow(img, cmap='gray',interpolation='bicubic')
- plt.xticks([]),plt.yticks([])
- plt.show()
Add Comment
Please, Sign In to add comment