Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upopencv读取图像报错:352 环境为win10+pycharm+python3.7+opencv4.1.0 ,希望得到解决 #902
Comments
|
已经解决 |
我也报了这个问题,可以帮帮我吗? |
|
你的代码是什么样的发来看看可以吗 |
|
不好意思啊对不起 好久没看GitHub |
|
|
I think the path of your picture is incorrect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


import cv2 as cv
import numpy as np
print("-------hello python---------")
scr = cv.imread(r"C://Users//ASUS//Pictures//Saved Pictures//d.jpg")
cv.namedWindow("input image", cv.WINDOW_AUTOSIZE)
cv.imshow("input image", scr)
cv.waitKey(0)
cv.destroyAllWindows()
报错: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'