pil display image code example
Example 1: show image in python
from PIL import Image
#read the image
im = Image.open("sample-image.png")
#show image
im.show()
Example 2: PIL image example
>>> from PIL import Image
>>> im = Image.open("image.jpg")
>>> im.show()