parameters: (video_name)
docstring: Args:
          Path to input video frame
      Return:
          Frame
docstring_summary: Args:
          Path to input video frame
      Return:
          Frame
docstring_tokens: Args : Path to input video frame Return : Frame
function: def get_frames(video_name):
      """
      Args:
          Path to input video frame
      Return:
          Frame
      """
      cap = cv.VideoCapture(video_name if video_name else 0)
      while True:
          ret, frame = cap.read()
          if ret:
              yield frame
          else:
              break
function_tokens: def get_frames ( video_name ) : cap = cv . VideoCapture ( video_name if video_name else 0 ) while True : ret , frame = cap . read ( ) if ret : yield frame else : break