title: Python3 - OpenCV & cv2.error: (-215) Unable to show captured image
body: <p>I am trying to using <code>opencv-3.3.0</code>, <code>cv2</code> &amp; <code>python3.5</code>.</p>
  
  <p>But, I can't seem to show image I have captured. </p>
  
  <ul>
  <li>I read all the documentation.  </li>
  <li>I tried all possible answers. </li>
  <li>But, I still unsuccessful.</li>
  </ul>
  
  <p>What am I missing?</p>
  
  <h1>Code:</h1>
  
  <pre><code>import numpy as np
  import cv2
  
  img=cv2.imread("F:/Train/sreen.png")
  cv2.imshow('image',img)
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <h1>The Error:</h1>
  
  <pre><code>OpenCV Error: Assertion failed (size.width&gt;0 &amp;&amp; size.height&gt;0) in cv::imshow, file D:\Build\OpenCV\opencv-3.3.0\moules\highgui\src\window.cpp, line 333 
  Traceback (most recent call last):
  File "F:\IQ_option\OpenCV\run.py", line 5, in &lt;module&gt;
      cv2.imshow('image',img)
  cv2.error: D:\Build\OpenCV\opencv-3.3.0\modules\highgui\src\window.cpp:333: error: (-215) size.width&gt;0 &amp;&amp; size.height&gt;0 in function cv::imshow
  </code></pre>
  
  <h1>The image:</h1>
  
  <p><a href="https://i.stack.imgur.com/W5H3X.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W5H3X.jpg" alt="My Code."></a></p>