Skip to main content

VideoSpace Objects

class VideoSpace(MultiFrameSpace)
Space implementation for frame-based video and image-sequence annotations.

__init__

def __init__(space_id: str, label_row: LabelRowV2, space_info: SpaceInfo,
             number_of_frames: int, width: int, height: int,
             is_image_sequence: bool)
Initialise a video or image-sequence space. Arguments:
  • space_id - The unique identifier of the space.
  • label_row - The label row that owns the space.
  • space_info - The raw space information used to populate the space.
  • number_of_frames - The total number of frames in the space.
  • width - The width of each frame in pixels.
  • height - The height of each frame in pixels.
  • is_image_sequence - Whether the space represents an image sequence rather than a video.