cv2显示图片时报错:
Traceback (most recent call last):File \"E:/ZCenterFace/picture_crop.py\", line 26, in <module>cv2.imshow(bear1)TypeError: Required argument \'mat\' (pos 2) not found
原因是cv2需要两个参数,修改为:
cv2.imshow(\'img\',bear1)
即可。
cv2显示图片时报错:
Traceback (most recent call last):File \"E:/ZCenterFace/picture_crop.py\", line 26, in <module>cv2.imshow(bear1)TypeError: Required argument \'mat\' (pos 2) not found
原因是cv2需要两个参数,修改为:
cv2.imshow(\'img\',bear1)
即可。