title: What datatype is captured with cv2.VideoCapture.read() method in OpenCV?
body: <p>I am wondering what kind of data type is being captured using the cv2.VideoCapture.read() method. I have been reading the OpenCV documents and I found this explanation:</p>
  
  <p><a href="https://i.stack.imgur.com/7Xen7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7Xen7.png" alt="enter image description here"></a></p>
  
  <p>I have followed a couple of basic tutorials with OpenCV where a webcam can capture data and outputs the frames. In the picture below the frame data is being shown.</p>
  
  <p><a href="https://i.stack.imgur.com/Lz23Y.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Lz23Y.png" alt="enter image description here"></a></p>
  
  <p>And here follows the code that outputs these frames:</p>
  
  <pre><code>import cv2, time, base64
  
  framesCaptured = 0;
  video=cv2.VideoCapture(0) &lt;====== Video capture for the webcam
  
  # Save camera frames as movie
  fourcc = cv2.VideoWriter_fourcc(*'XVID')
  out = cv2.VideoWriter('recording.avi', fourcc, 20.0, (640, 480))
  
  while True:
      framesCaptured += 1
  
      check, frame = video.read() &lt;====== Grabs and retrieves frames and decode
      # Write video frames
      out.write(frame)
  
      # Print out statements
      #print(check)
      print(frame) &lt;====== Print out frame data (as shown in the cmd picture below)
  
      gray=cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  
      cv2.imshow("frame", gray)   
  
      key=cv2.waitKey(1)
  
      if key == ord('q'):
          break
  
  #print('Frames captured: ' + str(framesCaptured))
  video.release()
  out.release()
  cv2.destroyAllWindows
  </code></pre>
  
  <p>So I am wondering what kind of data type is being printed from the 'frame' variable? </p>
  
  <p>In the end I want to use this 'frame' data to re-construct the images to a video in a C# application.</p>