Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(1+2+3+4)
- print(3**2)
- print(int(16/4))
- import numpy as np
- import cv2
- import matplotlib.image as mpimg
- import matplotlib.pyplot as plt
- image = cv2.imread('gravels.jpg')
- print('Image size = ',image.shape)
- print('This image is ',type(image),'with dimensions',image.shape)
- cv2.imshow("image" ,image)
- cv2.waitKey(0)
- image2 = cv2.cvtColor(image,cv2.COLOR_BGR2RGB )
- print('Image 2 size =',image.shape)
- image3 = cv2.cvtColor(image2,cv2.COLOR_RGBA2GRAY )
- print('Image 3 size =',image.shape)
- cv2.imshow("image" ,image3)
- cv2.waitKey(0)
- image_copy=np.copy(image)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement