title: TypeError with VideoCapture Crop
body: <p>I have been trying to crop a video frame using numpy slicing, as suggested by other answers to how to crop a video via OpenCV. I set up my live video capture as follows:</p>
  <pre class="lang-py prettyprint-override"><code>vs = VideoCapture(1)
  vs.set(cv2.CAP_PROP_FRAME_WIDTH,100)
  vs.set(cv2.CAP_PROP_FRAME_HEIGHT,100)
  </code></pre>
  <p>I then create a while loop to loop over the frames from the video stream:</p>
  <pre class="lang-py prettyprint-override"><code>while True:
     frame = vs.read()
     cropped = frame[160:450, 170:470]
  </code></pre>
  <p>When I run the script, however, an error is returned that states:</p>
  <blockquote>
  <p>cropped = frame[160:450, 170:470]</p>
  <p>TypeError: tuple indices must be integers or slices, not tuple</p>
  </blockquote>
  <p>Does anyone have a solution to this issue?</p>