face-api.js
Version:
JavaScript API for face detection and face recognition in the browser with tensorflow.js
15 lines (14 loc) • 559 B
TypeScript
/// <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;
fetch: (url: string, init?: RequestInit) => Promise<Response>;
};