Skip to content

@camera.ui/sdk / sensor / FaceDetection

Interface: FaceDetection

Defined in: sensor/face.ts:24

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

Extends

Properties

attribute

attribute: "face"

Defined in: sensor/face.ts:26

Sub-detection attribute, fixed to 'face'.

Overrides

Detection.attribute


box

box: BoundingBox

Defined in: sensor/detection.ts:41

Bounding box in normalized coordinates.

Inherited from

Detection.box


confidence

confidence: number

Defined in: sensor/detection.ts:39

Confidence score in the range 0-1.

Inherited from

Detection.confidence


embedding?

optional embedding?: number[]

Defined in: sensor/face.ts:30

Face embedding vector for recognition/comparison.


identity?

optional identity?: string

Defined in: sensor/face.ts:28

Recognized identity name, if matched against known faces.


label

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

Defined in: sensor/detection.ts:37

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

Inherited from

Detection.label


thumbnail?

optional thumbnail?: Uint8Array<ArrayBufferLike>

Defined in: sensor/face.ts:32

JPEG thumbnail crop of the detected face.