Interface FaceLandmarkerConfig

URLs of the MediaPipe Tasks Vision resources that power face detection for the avatars effect. The runtime loads them inside a Web Worker, so the mediapipe module must be reachable from the worker context.

interface FaceLandmarkerConfig {
    mediapipe: string;
    model: string;
    wasm: string;
}

Properties

Properties

mediapipe: string

URL of the MediaPipe Tasks Vision ESM module. Loaded by the worker via dynamic import() — must point to a module that exports FaceLandmarker and FilesetResolver. Default: @mediapipe/[email protected] from the jsDelivr CDN.

model: string

MediaPipe face landmarker model URL. Default: face_landmarker.task (float16, v1) from Google Storage.

wasm: string

MediaPipe WASM base URL. Default: @mediapipe/[email protected]/wasm from the jsDelivr CDN.