Python: Opencv: error: (-215) size.width>0 && size.height>0 in function cv::imshow : <p>I am trying to load image using openCV in python but I am getting error like: </p>

<p>error: C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:325: error: (-215) size.width>0 &amp;&amp; size.height>0 in function cv::imshow</p>

<p>Does it has to do any thing with the size of the image? 
What can be possible solution of this error? </p>

<p>I am sending you the trace back in attachment. 
Thanks<a href="https://i.stack.imgur.com/jcz2q.png" rel="nofollow noreferrer">enter image description here</a></p>

<pre><code>import cv2 , time
import numpy as np


img =  cv2.imread ('C:\Users\Ravi\.spyder\Ravi_Pic.jpc', 0)
cv2.imshow('Ravi',img) 
</code></pre>
