AttributeError: 'NoneType' object has no attribute 'shape'求指导

图片说明

opencv很邪门,路径不错也会有读不出来的情况。
print 一下 roi 自己排查或者换绝对路径

我猜一下
你的path错了
结果什么都没读出来
所以是notype