Error描述
C:\WORK\Python\python.exe C:/WORK/Python/EXAMPLE/ceshi.py
Traceback (most recent call last):File "C:/WORK/Python/EXAMPLE/ceshi.py", line 3, in <module>cv2.imshow("1",img)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:352: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
解决方案
这里斜杠换成/就可以了