How to open and display an image in Python

Opening and displaying an image shows an image stored in a particular file.

Solution for How to open and display an image in Python : You can use PIL.Image.open() and PIL.Image.Image.show() to open and display an image Call PIL.Image.open(fp) to open an image with the filename fp. Call PIL.Image.Image.show() with PIL.Image.Image as the result of the previous step to display the image.


how-to-open-and-display-an-image-in-python