问题
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