title: Code works in Windows but not Raspberry pi (opencv)
body: <p>I'm new to coding and using a raspberry pi. I've searched through many tutorials online and found a how to get OpenCV library into the pi itself and downloaded VSC on my laptop and the pi. The issue that I'm having is the code that I used on my laptop doesn't work the same on the pi. I've been getting errors on my code that dosen't show in in my laptop VSC.</p>
  <p>the purpose is to display a live feed from the camera in the raspberry pi</p>
  <pre><code>import numpy as np
  import cv2
  
  cap = cv2.VideoCapture(0)
  
  while(True):
      ret, frame = cap.read()
  
      frame = cv2.resize(frame, (0,0), fx=0.5,fy=0.5)
      cv2.imshow(&quot;Frame&quot;,frame)
  
      ch = cv2.waitKey(1)
      if ch &amp; 0xFF == ord('q'):
          break
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>
  <ul>
  <li>(line 10) error: (-206:Bad flag (parameter or structure field)) Unrecognized or unsupported array type in function 'cvGetMat'</li>
  <li>(line 9) error: (-215:Assertion failed) !ssize.empty() in function 'resize'</li>
  </ul>