OpenCV: getting error for resizing- 1428: error: (-215) ssize.area() > 0
<pre><code>while True:
    ret, frame = cap.read()
    frame = cv2.resize(frame, None, fx=scaling_factor, fy=scaling_factor, interpolation=cv2.INTER_AREA)
    gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
</code></pre>

<blockquote>
  <p>1428: error: (-215) ssize.area() > 0</p>
</blockquote>

<p>The error is suggesting that the <code>frame</code> you extracted from the camera has zero size. So it is recommended to check the size and data of <code>frame</code> from <code>cap.read()</code>
before doing any processing.</p>

python opencv