title: How do I get a video feed to shrink to fit a window using OpenCV Beta 3.0.0 and Python 2.7.5?
body: <p>I am working on a project where I need to display 3 webcam feeds side by side on a single screen. I have the feeds side by side, but the video isn't fully displaying on the windows. How do I make the video auto-fit to the window? Thanks!</p>
  
  <p>Here's the code:</p>
  
  <pre><code>import cv2
  
  window_x = 340
  window_y = 340
  
  capture1 = cv2.VideoCapture(0)
  capture2 = cv2.VideoCapture(1)
  capture3 = cv2.VideoCapture(3)
  
  while True:
      cv2.namedWindow("frame1")
      cv2.namedWindow("frame2")
      cv2.namedWindow("frame3")
  
      cv2.moveWindow("frame1",0,0)
      cv2.moveWindow("frame2",window_x,0)
      cv2.moveWindow("frame3",window_x * 2,0)
  
      cv2.resizeWindow("frame1",window_x,window_y)
      cv2.resizeWindow("frame2",window_x,window_y)
      cv2.resizeWindow("frame3",window_x,window_y)
  
      ret, frame1 = capture1.read()
      ret, frame2 = capture2.read()
      ret, frame3 = capture3.read()
  
      cv2.imshow("frame1",frame1)
      cv2.imshow("frame2",frame2)
      cv2.imshow("frame3",frame3)
  
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
          break
  
  capture1.release()
  capture2.release()
  capture3.release()
  
  cv2.destroyAllWindows()
  </code></pre>