1. 问题所示
读取图片的时候出现如下错误:
[ WARN:0@0.009] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_('D:\test_code\python\text.jpg'): can't open/read file: check file path/integrity
Traceback (most recent call last):
File "D:\test_code\python\main.py", line 7, in <module>
cv2.imshow('image', img)
cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:967: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
截图如下所示:
2. 原理分析<
文章出处登录后可见!
已经登录?立即刷新