result of cv2 imread code example
Example 1: finding the format of an image in cv2
cv2.imread('abalone.jpg', cv2.IMREAD_COLOR).dtype
Example 2: python opencv check image read
import cv2
import os.path
while not os.path.isfile("myImage.jpg"):
#ignore if no such file is present.
pass
img = cv2.imread("myImage.jpg", 0)
cv2.imwrite("result.jpg", img)