from PIL import Image
import cv2
import numpy as npimg = Image.open('Image.jpg')
img = np.array(img)
cv2.imshow('img', img)
cv2.waitKey()
from PIL import Image
import matplotlib.pyplot as plt
import numpy as npimg = Image.open('Image.jpg')
img = np.array(img)
plt.imshow(img)
plt.show()