title: resizing a picture in opencv?
body: <p>i am writing a face dection program in opencv. And this is the error code below:</p>
  
  <pre><code>result = img[rects[0]:rects[1], rects[2]:rects[3]] 
  result = cv2.resize(result, (100,100)) 
  </code></pre>
  
  <p>img is our original picture and the first step is croping out our rigion of interest into result. 
  The second step is resize to 100*100 pixels.</p>
  
  <p>the error is:</p>
  
  <pre><code>result = cv2.resize(result, (100,100))
  error: ..\..\..\src\opencv\modules\imgproc\src\imgwarp.cpp:1725: error: (-215) ssize.area() &gt; 0
  </code></pre>
  
  <p>Hope someone can help me. Thanks a lot.</p>