supervision-js
    Preparing search index...

    Interface DetectionFrame

    Detections associated with one media time.

    mediaTime is seconds on the renderer media timeline. endTime, when provided, is exclusive. frameIndex can be used when detections are produced on a known inference frame grid and the session is configured for nearest frame-index selection.

    interface DetectionFrame {
        frameIndex?: number;
        mediaTime: number;
        endTime?: number;
        detections: readonly Detection[];
        coordinateSpace?: DetectionCoordinateSpace;
    }
    Index
    frameIndex?: number

    Optional inference frame index for frame-grid synchronized detections.

    mediaTime: number

    Media timeline time in seconds.

    endTime?: number

    Exclusive end time in seconds. Omit for point-in-time frames.

    detections: readonly Detection[]

    Detections active for this frame interval.

    coordinateSpace?: DetectionCoordinateSpace

    Optional pixel space this frame's rectangles, polygons, polylines, and keypoints were produced in.

    Omit it when detections are already in media-pixel coordinates. Mask coordinates always use the mask's own intrinsic dimensions and are never rescaled by coordinate-space projection.