I couldn't get past this error in open cv

Viewed 76331
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 Answers

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.

Related