Skip to content

Schemas

FrameObject dataclass

A frame object.

Parameters:

Name Type Description Default
frame Image

The frame image.

required
metadata dict

The metadata for the frame.

required
Source code in video_sampler/schemas.py
15
16
17
18
19
20
21
22
23
24
25
26
@dataclass
class FrameObject:
    """
    A frame object.

    Args:
        frame (Image.Image): The frame image.
        metadata (dict): The metadata for the frame.
    """

    frame: Image.Image
    metadata: dict