problem with cv2.imshow() method
Hello,
i try on many script,on linux and windows,but i still ave a bug on " cv2.imshow()".
the code with my image adress:
import cv2
path = r'C:\Users\me\Pictures\dell latitude\DSCF1513'
image = cv2.imread(path) window_name = 'image'
cv2.imshow(window_name, image)
cv2.waitKey(0)
cv2.destroyAllWindows()
and now the bug:
================= RESTART: C:\Users\me\Documents\opencvTest.py ================= Traceback (most recent call last): File "C:\Users\me\Documents\opencvTest.py", line 18, in <module> cv2.imshow(window_name, image) cv2.error: OpenCV(4.4.0) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-k8sx3e60\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
thanks for your help.