I couldn't get past this error in open cv? [duplicate]

[亡魂溺海] 提交于 2021-01-24 07:21:58

问题


cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-2b5g8ysb\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'


回答1:


This problem says that an assertion is failed. If the file doesn't exist in the given path,cv2 returns this error. So check if the file exists in your given path.



来源:https://stackoverflow.com/questions/63674116/i-couldnt-get-past-this-error-in-open-cv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!