Skip to content

Video Processing Tasks

Don Kackman edited this page Jan 6, 2025 · 4 revisions

Tasks

get_first_frame

  • Description: Retrieves the first frame of the video.
  • Arguments:
    • video: A list of Image.Image objects representing the video frames.

get_frame

  • Description: Retrieves a specific frame from the video.
  • Arguments:
    • video: A list of Image.Image objects representing the video frames.
    • kwargs:
      • frame_index (optional): The index of the frame to retrieve. Defaults to 0 if not provided.

get_last_frame

  • Description: Retrieves the last frame of the video.
  • Arguments:
    • video: A list of Image.Image objects representing the video frames.

Notes

  • Each processor requires the video argument, which should be a list of frames in the form of Image.Image objects.
  • Ensure that the frame_index provided in kwargs is within the bounds of the video frame list to avoid index errors.

Clone this wiki locally