但每次我尝试构建detectCoins.py时都会遇到这个错误 File "detectCoins.py", line 226, in <module>AttributeError: 'NoneType' object has no attribute 'shape' 谁能告诉我如何正确运行这个项目?[0], image.shape[1]), 0, dtype=np.uint8)
if frame is None: (H, W) = frame.shapeFile "C:\Python37\lib\site-packages\imutils\convenience.py", line 69, in resizeAttributeError: 'tuple' object has no attribute
roi_gray = gray[y:y + h, x:x + w]for i in range(0, faces.shapefaces[i][0]:faces[i][0] + faces[i][2]]) 这是我得到的错误: AttributeError: 'tuple' object has no attribute 'shape' 错误在这一行中: for i in range(0, faces.shape