Interface FaceConfig

Configures all face-specific options: face detection, mesh analysis, age, gender, emotion detection and face description

interface FaceConfig {
    antispoof: Partial<FaceAntiSpoofConfig>;
    attention: Partial<FaceAttentionConfig>;
    description: Partial<FaceDescriptionConfig>;
    detector: Partial<FaceDetectorConfig>;
    emotion: Partial<FaceEmotionConfig>;
    enabled: boolean;
    gear: Partial<FaceGearConfig>;
    iris: Partial<FaceIrisConfig>;
    liveness: Partial<FaceLivenessConfig>;
    mesh: Partial<FaceMeshConfig>;
    modelPath: string;
    skipFrames: number;
    skipTime: number;
}

Hierarchy (view full)

Properties

antispoof: Partial<FaceAntiSpoofConfig>
attention: Partial<FaceAttentionConfig>
description: Partial<FaceDescriptionConfig>
detector: Partial<FaceDetectorConfig>
emotion: Partial<FaceEmotionConfig>
enabled: boolean

is module enabled?

gear: Partial<FaceGearConfig>
iris: Partial<FaceIrisConfig>
liveness: Partial<FaceLivenessConfig>
mesh: Partial<FaceMeshConfig>
modelPath: string

path to model json file (relative to modelBasePath

skipFrames: number

how many max frames to go without re-running model if cached results are acceptable for two-phase models such as face and hand caching applies to bounding boxes detection only

skipTime: number

how many max milliseconds to go without re-running model if cached results are acceptable for two-phase models such as face and hand caching applies to bounding boxes detection only