UNPKG

@vladmandic/face-api

Version:

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS

16 lines (15 loc) 593 B
/// <reference types="node" /> export declare type FileSystem = { readFile: (filePath: string) => Promise<Buffer>; }; export declare type Environment = FileSystem & { Canvas: typeof HTMLCanvasElement; CanvasRenderingContext2D: typeof CanvasRenderingContext2D; Image: typeof HTMLImageElement; ImageData: typeof ImageData; Video: typeof HTMLVideoElement; createCanvasElement: () => HTMLCanvasElement; createImageElement: () => HTMLImageElement; createVideoElement: () => HTMLVideoElement; fetch: (url: string, init?: RequestInit) => Promise<Response>; };