supervision-js
    Preparing search index...

    Type Alias DetectionStyleValue<TValue, TContext>

    DetectionStyleValue:
        | TValue
        | ((detection: Detection, context: TContext) => TValue)

    Static style value or resolver function.

    Use static values for simple global styling. Use resolver functions for per-class, per-confidence, or frame-aware presentation without mutating the underlying detection data.

    Type Parameters

    • TValue
    • TContext