img.read() code example
Example 1: read image in python
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('Top-bike-wallpaper.jpg',0)
Example 2: open opencv image file
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()