VideoFrame#
- class maite.protocols.multiobject_tracking.VideoFrame(*args, **kwargs)[source]#
Contents of a single decoded video frame.
- Attributes:
- pixels
ArrayLike An array representing pixel values in a single frame with (C, H, W) shape semantics
- time_s
float Time associated with video frame (relative to 0 seconds for first frame of source)
- pts
int Presentation time stamp associated with video frame (relative to 0 for first frame of source)
- frame_index
int Zero-based index of this frame within the yielded
VideoStream(i.e., decode/sampling output order). This is not necessarily the absolute frame number in the source video.
- pixels