supervision-js
    Preparing search index...

    Interface DetectionBufferOptions

    interface DetectionBufferOptions {
        bufferAheadSeconds?: number;
        bufferBehindSeconds?: number;
        frameIndexOriginTime?: number;
        frameRate?: number;
        playbackGate?: DetectionPlaybackGateOptions;
        refreshIntervalSeconds?: number;
        selectionMode?: DetectionFrameSelectionMode;
    }

    Hierarchy (View Summary)

    Index
    bufferAheadSeconds?: number

    Seconds of detections to keep loaded ahead of playback.

    bufferBehindSeconds?: number

    Seconds of detections to keep loaded behind playback.

    frameIndexOriginTime?: number

    Media timestamp for inference frame index 0. Defaults to the first indexed frame's time minus frameIndex / frameRate.

    frameRate?: number

    Inference frame rate used by NearestFrameIndex.

    Optional playback gate based on detection availability.

    refreshIntervalSeconds?: number

    Minimum media-time movement before refreshing the hot detection window.

    Selection strategy for matching media playback time to detection frames.