|

楼主 |
发表于 2021-2-2 11:34:27
|
显示全部楼层
本帖最后由 curedfish 于 2021-2-2 11:35 编辑
一个头两个大啊。终于弄好了,但是imshow报错 ,
"D:\python example\Scripts\python.exe" "D:/python example/test.py"
Traceback (most recent call last):
File "D:/python example/test.py", line 4, in <module>
cv2.imshow('123',img)
cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-i1s8y2i1\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
Process finished with exit code 1 |
|