how to open images in python 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: read image in python
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('Top-bike-wallpaper.jpg',0)