UNPKG

@the-horizon-dev/fast-face-detection

Version:

Fast face detection package using TensorFlow.js MediaPipe models for browser and Node.js environments

14 lines (13 loc) 463 B
import { Environment } from '../types/types'; /** * Initializes the appropriate TensorFlow.js backend */ export declare function initTensorflowBackend(environment: Environment): Promise<void>; /** * Checks if a TensorFlow.js backend has been initialized */ export declare function isTensorflowBackendInitialized(): boolean; /** * Returns the name of the current active TensorFlow.js backend */ export declare function getTensorflowBackend(): string | null;