title: How to create array of frames from an mp4 with opencv for python
body: <p>I am attempting to use opencv_python to break an mp4 file down into it's frames so I can later open them with pillow, or at least be able to use the images to run my own methods on them.</p>
  
  <p>I understand that the following snippet of code gets a frame from a live video or a recorded video.</p>
  
  <pre><code>    import cv2
      cap = cv2.VideoCapture("myfile.mp4")
      boolean, frame = cap.read()
  </code></pre>
  
  <p>What exactly does the read function return and how can I create an array of images which I can modify.</p>