With matplotlib you can use (as shown in the matplotlib documentation)
import matplotlib.pyplot as plt import matplotlib.image as mpimg img=mpimg.imread('image_name.png')
And plot the image if you want
imgplot = plt.imshow(img)
With matplotlib you can use (as shown in the matplotlib documentation)
import matplotlib.pyplot as plt import matplotlib.image as mpimg img=mpimg.imread('image_name.png')
And plot the image if you want
imgplot = plt.imshow(img)