使用VideoCapture().read()时,imutils报错:AttributeError: ‘tuple‘ object has no attribute ‘shape‘解决方案
1.报错:环境:python+opencvFile"XXX\lib\site-packages\imutils\convenience.py",line69,inresize(h,w)=image.shape[:2]AttributeError:'tuple'objecthasnoattribute'shape'2.原因:.read()返回值包括两个:1)True/False(bool类型),返回