original_docstring: 
      Create an image sequence generator out of an OpenCV VideoCapture object.
      
docstring: Create an image sequence generator out of an OpenCV VideoCapture object.
docstring_tokens: Create an image sequence generator out of an OpenCV VideoCapture object .
code: def video_capture(vc):
      """
      Create an image sequence generator out of an OpenCV VideoCapture object.
      """
      has_frames = vc.isOpened()
      while has_frames:
          read_frame, frame = vc.read()
          has_frames = read_frame
          if read_frame:
              yield frame
code_tokens: def video_capture ( vc ) : has_frames = vc . isOpened ( ) while has_frames : read_frame , frame = vc . read ( ) has_frames = read_frame if read_frame : yield frame
short_docstring: Create an image sequence generator out of an OpenCV VideoCapture object.
short_docstring_tokens: Create an image sequence generator out of an OpenCV VideoCapture object .
comment: """
      Create an image sequence generator out of an OpenCV VideoCapture object.
      """