Python OpenCV 错误 error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow‘
Python OpenCV 错误 error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow’flyfish详细提示cv2.imshow('caption', frame)cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-qacpj
·
Python OpenCV 错误 error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘imshow’
flyfish
详细提示
cv2.imshow('caption', frame)
cv2.error: OpenCV(4.4.0) /tmp/pip-req-build-qacpj5ci/opencv/modules/highgui/src/window.cpp:376:
error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'
解决方案
frame错误,检查下frame,数据读取是否正确,通常为空时产生这样的错误
更多推荐
已为社区贡献4条内容
所有评论(0)