I am trying to load image using openCV in python but I am getting error like:
error: C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:325: error: (-215) size.width>0 && size.height>0 in function cv::imshow
Does it has to do any thing with the size of the image? What can be possible solution of this error?
I am sending you the trace back in attachment. Thanksenter image description here
import cv2 , time
import numpy as np
img = cv2.imread ('C:\Users\Ravi\.spyder\Ravi_Pic.jpc', 0)
cv2.imshow('Ravi',img)