VideoFrame#

class maite.protocols.multiobject_tracking.VideoFrame(*args, **kwargs)[source]#

Contents of a single decoded video frame.

Attributes:
pixelsArrayLike

An array representing pixel values in a single frame with (C, H, W) shape semantics

time_sfloat

Time associated with video frame (relative to 0 seconds for first frame of source)

ptsint

Presentation time stamp associated with video frame (relative to 0 for first frame of source)

frame_indexint

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.