here is the code:
import numpy as np
import cv2
img = cv2.imread('/home/Pi/Exp/result.jpg',0)
cv2.imshow('gghhss',img)
cv2.waitkey(0)
cv2.destroyAllWindows()
And the error:
Traceback (most recent call last):
File "/home/pi/Exp/opcv.py", line 5, in <module>
cv2.imshow('gghhss',img)
error: /build/opencv-ISmtkH/opencv-2.4.9.1+dfsg/modules/highgui/src/window.cpp:269: error: (-215) size.width>0 && size.height>0 in function imshow
This is from opencv tutorial here in the read image.
Thanks :) P.S. I did google and did not find anything. Please donot downvote,