我一直遇到一个形状:'NoneType‘对象没有’AttributeError‘属性
回溯(最近一次调用):
File "/home/pi/ball-track/ball_tracking.py", line 52, in <module>
frame = imutils.resize(frame, width=600)
File "/usr/local/lib/python2.7/dist-packages/imutils/convenience.py", line 45, in resize
(h, w) = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'发布于 2016-09-08 18:56:20
对于遇到相同问题的任何人,我已经通过键入以下命令解决了该错误:
sudo modprobe bcm2835-v4l2 https://stackoverflow.com/questions/39374335
复制相似问题