|
本人菜鸟,第一次用opencv就出现错误:
oopencv-3.3.1\modules\highgui\src\window.cpp:339: error: (-215) size.width>0 && size.height>0 in function cv::imshow
下面是源代码:
- import cv2
- img = cv2.imread('路.jpg')
- cv2.namedWindow("w")
- cv2.imshow('w',img)
- cv2.waitKey(0)
复制代码 运行报错:
oopencv-3.3.1\modules\highgui\src\window.cpp:339: error: (-215) size.width>0 && size.height>0 in function cv::imshow
有人知道吗
|
|