Periksa apakah gambar kosong OpenCV Python

if (type(img) is np.ndarray): 
     #do stuff with image
Merwanski