Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import cv2
- img = cv2.imread('Image.png')
- gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
- print(img)
- cv2.imshow('Image', img)
- cv2.imshow('Gray', gray)
- cv2.waitKey(0)
- cv2.destroyAllWindows()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement