python check image abailable to read code example Example: check if image is empty opencv python if (type(img) is np.ndarray): #do stuff with image