报错: size = gray.shape[::-1] ^^^^ NameError: name 'gray' is not defined 问题:在指定文件夹,无法找到所需图片 解决方法:更换为正确路径