cv2.error: OpenCV(4.5.1) error: (-215:Assertion failed) size.width>0 && size.height>0 in function ‘

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

解决

路径中不要存在中文名称即可

你可能感兴趣的:(笔记)