supervision-js
    Preparing search index...

    Interface DetectionHeatmap

    Scalar samples in row-major order, independent of any colour palette. bounds locates the raster in media pixels; its resolution need not match the video or the source model's input size. Flatten an inference anomaly_map[y][x] to populate values without changing the scores.

    interface DetectionHeatmap {
        bounds: Rect;
        width: number;
        height: number;
        values:
            | readonly number[]
            | Float32Array<ArrayBufferLike>
            | Uint16Array<ArrayBufferLike>;
        valueScale?: number;
        threshold?: number;
    }
    Index
    bounds: Rect
    width: number
    height: number
    values:
        | readonly number[]
        | Float32Array<ArrayBufferLike>
        | Uint16Array<ArrayBufferLike>
    valueScale?: number

    Multiplies stored samples before thresholding; defaults to 1.

    threshold?: number

    Model-supplied score cutoff, not a binary mask threshold.