I couldn't get past this error in open cv

74,953

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.

Share:
74,953
Admin
Author by

Admin

Updated on April 12, 2021

Comments

  • Admin
    Admin about 3 years
    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'
    
  • Mohammad Javadian
    Mohammad Javadian over 3 years
    I got this error when file exists