import { BrowserType } from "./BrowserUtil" ; export const WorkerCommand = { INITIALIZE : "initialize" , PREDICT : "predict" , } ; export const WorkerResponse = { INITIALIZED : "initialized" , PREDICTED : "predicted" , } ; export interface ModelConfig { maxContinuousChecks : number ; detectionConfidence : number ; maxFaces : number ; iouThreshold : number ; scoreThreshold : number ; } export interface FacemeshConfig { browserType : BrowserType ; useTFWasmBackend : boolean ; useTFCPUBackend : boolean ; wasmPath : string ; modelReloadInterval : number ; model : ModelConfig ; processOnLocal : boolean ; pageUrl : string ; } export interface FacemeshOperatipnParams { type : FacemeshFunctionType ; processWidth : number ; processHeight : number ; predictIrises : boolean ; } export enum FacemeshFunctionType { DetectMesh }