title: opencv set camera resolution windows vrs linux
body: <p>Questions that are variations of this occur, but not this error situation.</p>
  
  <p>This codeworks on Linux, it Fails on windows10 OpenCV 3.4.2, 64bit -Python 3.6 - installed via "pip3 install opencv-python"</p>
  
  <p>It fails on Windows with the error message below.</p>
  
  <p>If I remove the 'cv2.set()' for the horz and virt size it works, without problem but the resolution is not what I want</p>
  
  <p>My goal is to change from the default image size to the LARGER size.</p>
  
  <pre><code>v=3.4.2
  Camera H=480, W=640
  Camera H=480, W=640
  [ WARN:0] videoio(MSMF): OnReadSample() is called with error status: -1072875855
  [ WARN:0] videoio(MSMF): async ReadSample() call is failed with error status: -1072875855
  [ WARN:1] videoio(MSMF): can't grab frame. Error: -1072875855
  [ WARN:1] videoio(MSMF): can't grab frame. Error: -2147483638
  </code></pre>
  
  <p>This is the Python code</p>
  
  <pre><code>import cv2
  print("v=%s" % cv2.__version__)
  cap = cv2.VideoCapture(0, cv2.)
  h = cap.get( cv2.CAP_PROP_FRAME_HEIGHT )
  w = cap.get( cv2.CAP_PROP_FRAME_WIDTH )
  print("Camera H=%d, W=%d" % (h,w) )
  # If I remove these two lines it works but is stuck at 640x480
  cap.set( cv2.CAP_PROP_FRAME_HEIGHT, 10000 )
  cap.set( cv2.CAP_PROP_FRAME_WIDTH, 10000 )
  h = cap.get( cv2.CAP_PROP_FRAME_HEIGHT )
  w = cap.get( cv2.CAP_PROP_FRAME_WIDTH )
  print("Camera H=%d, W=%d" % (h,w) )
  
  while(True):
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
          break
      ret, frame = cap.read()
      if ret:
          cv2.imshow('frame',frame)
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>