title: Does Python have an equivalent of VideoReader in Matlab?
body: <p>VideoReader is very convenient for reading and playing videos. But, I haven't found something equivalent for Python yet though I have tried using OpenCV for this purpose. </p>
  
  <pre><code>import cv2
  
  cap = cv2.VideoCapture('F:/OpenWorm/Omega_data/videos/super_orange/super_orange.avi')
  
  while(cap.isOpened()):
      ret, frame = cap.read()
  
      gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
  
      cv2.imshow('frame',gray)
      if cv2.waitKey(1) &amp; 0xFF == ord('q'):
          break
  
  cap.release()
  cv2.destroyAllWindows()
  </code></pre>