title: Python Opencv crops input image from usb camera
body: <p>Im trying to create a tool that will take images from stereo cameras (connected to a sync board) with python and opencv.</p>
  
  <p>When im looking at the image i get from opencv it seems different then what i get with windows camera app.</p>
  
  <p>both set to the same resolution. what am i missing?</p>
  
  <pre><code>cap = cv2.VideoCapture(0)
  
  # cap.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
  #
  # cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
  
  while 1:
      ret, frame = cap.read()
      # cv2.imshow("frame",frame)
      cv2.imwrite('test.bmp',frame)
      if cv2.waitKey(20) &amp; 0xFF == ord('q'):
          break
      width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
      height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
      print('size:', width, height)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/7EkxG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7EkxG.png" alt="Windows app input"></a></p>
  
  <p><a href="https://i.stack.imgur.com/UbnM3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UbnM3.png" alt="Python code input"></a></p>
  
  <p>both images are 1344x376</p>