📅  最后修改于: 2022-03-11 14:59:11.493000             🧑  作者: Mango
This is because the path of image is wrong or the name of image you write is incorrect .
how to check? first try to print the image using print(img) if it prints 'None' that means you have given wrong image path correct that path and try again.