UNPKG

face-api.js

Version:

JavaScript API for face detection and face recognition in the browser with tensorflow.js

4 lines (3 loc) 234 B
import * as tf from '@tensorflow/tfjs-core'; import { Box, IDimensions } from '../classes'; export declare function extractImagePatches(img: HTMLCanvasElement, boxes: Box[], { width, height }: IDimensions): Promise<tf.Tensor4D[]>;