October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here is the code block that reads a JPEG file as a pixel-valued list and displays it as an image on the screen:
image = plt.imread('louvre.jpg')
print("Dimensions of the image: ", image.shape)
plt.imshow(image)
plt.show()
Read now
Unlock full access