Interface FacePresenceResult

interface FacePresenceResult {
    box: null | { height: number; width: number; x: number; y: number };
    detected: boolean;
    error?: string;
}

Properties

Properties

box: null | { height: number; width: number; x: number; y: number }

Face bounding box. Null if no face found.

detected: boolean

Whether a face was detected.

error?: string

Error code if detection failed. Undefined on success.