AttributeError: ‘NoneType’ object has no attribute ‘shape’ 报错原因 找不到图片。 仔细检查自己python代码中的图片文件,看看自己当前运行目录下是否有这张要处理的图片。