Skip to content

@camera.ui/sdk / camera / EventDetection

Interface: EventDetection

Defined in: camera/events.ts:44

Aggregated object detection within a segment.

Properties

box?

optional box?: BoundingBox

Defined in: camera/events.ts:52

Bounding box of the highest-confidence detection (normalized 0–1)


label

label: string

Defined in: camera/events.ts:46

Detection label (e.g. "person", "car")


maxCount

maxCount: number

Defined in: camera/events.ts:50

Maximum simultaneous count in a single frame


moving?

optional moving?: boolean

Defined in: camera/events.ts:58

Whether the object was moving (true) or stationary (false)


score

score: number

Defined in: camera/events.ts:48

Best confidence score


thumbnail?

optional thumbnail?: Uint8Array<ArrayBufferLike>

Defined in: camera/events.ts:54

Best-selected JPEG thumbnail crop. Only present on 'end' events.


trackId?

optional trackId?: number

Defined in: camera/events.ts:56

Object tracker ID (links this detection across frames)