title: cv2 resolution of captured picture
body: <p>Hello I have this simple code:</p>
  
  <pre><code>from cv2 import *
  import time
  # initialize the camera
  
  
  for x in range (10):
      cam = VideoCapture(0)   # 0 -&gt; index of camera
      s,img = cam.read()
      imwrite(str(x) + ".jpg",img) #save image
      time.sleep(3)
      print(x)
      cam.release()
  </code></pre>
  
  <p>I wonder about two things:
  - the default resolution of my webcam is higher than resolution that script is saving my picture with? 
  - is there any command to check max resolution of webcam (I would like to set this res as default output)?</p>