Skip to content

@camera.ui/sdk / sensor / FaceDetection

Interface: FaceDetection

Defined in: sensor/face.ts:21

A face detection result, extending Detection with face-specific fields.

Extends

Properties

attribute

attribute: "face"

Defined in: sensor/face.ts:23

Sub-detection attribute, fixed to 'face'.

Overrides

Detection.attribute


box

box: BoundingBox

Defined in: sensor/detection.ts:35

Bounding box in normalized coordinates.

Inherited from

Detection.box


confidence

confidence: number

Defined in: sensor/detection.ts:33

Confidence score in the range 0–1.

Inherited from

Detection.confidence


embedding?

optional embedding?: number[]

Defined in: sensor/face.ts:27

Face embedding vector for recognition/comparison.


identity?

optional identity?: string

Defined in: sensor/face.ts:25

Recognized identity name, if matched against known faces.


label

label: "motion" | "audio" | "person" | "vehicle" | "animal" | "package"

Defined in: sensor/detection.ts:31

Detection label (e.g. 'person', 'vehicle').

Inherited from

Detection.label


thumbnail?

optional thumbnail?: Uint8Array<ArrayBufferLike>

Defined in: sensor/face.ts:29

JPEG thumbnail crop of the detected face.