Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lab-1
- Name of Experiment: Introduction to digital Image Processing using python(OpenCV)
- ---Read an Image from PC
- ---Show the Image display
- ---Dimension of Image
- ---RGB to Gray
- import cv2
- img = cv2.imread('Image.png')
- #img = cv2.imread('Image.png',0) Gray
- print(img)
- cv2.imshow('Image', img)
- cv2.waitKey(0)
- cv2.destroyAllWindows()
- dimension = img.shape
- print(dimension)
Add Comment
Please, Sign In to add comment