Vérifiez si l'image est vide opencv python
if (type(img) is np.ndarray):
#do stuff with image
Merwanski
if (type(img) is np.ndarray):
#do stuff with image