OpenCV-Python is a library of Python bindings designed to solve computer vision problems.
cv2.imread() method loads an image from the specified file.
import cv2 image = cv2.imread("jg.png") cv2.imshow("Image",image) cv2.waitKey(0) cv2.destroyAllWindows()
OUTPUT

http://openCV-Python If the image cannot be read (because of the missing file, improper permissions , or unsupported or invalid format) then this method returns an empty matrix.
Parameters:
- file name
- flag
- cv2.IMREAD_COLOR
- cv2.IMREAD_UNCHANGED
- cv2.IMREAD_GRAYSCALE
- Return Value