supervision-js
    Preparing search index...

    Interface Rect

    Axis-aligned rectangle in media pixel coordinates.

    This is semantic detection geometry, not a renderer shape. Presentation details such as stroke, fill, corner radius, or opacity belong to box styles. x and y identify the rectangle center.

    interface Rect {
        height: number;
        width: number;
        x: number;
        y: number;
    }
    Index
    height: number

    Height in media pixels. Must be greater than 0.

    width: number

    Width in media pixels. Must be greater than 0.

    x: number

    Center X coordinate in media pixels.

    y: number

    Center Y coordinate in media pixels.