UNPKG

face-api.js

Version:

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

13 lines (12 loc) 459 B
import { Box } from './Box'; import { IDimensions } from './Dimensions'; import { ObjectDetection } from './ObjectDetection'; import { Rect } from './Rect'; export interface IFaceDetecion { score: number; box: Box; } export declare class FaceDetection extends ObjectDetection implements IFaceDetecion { constructor(score: number, relativeBox: Rect, imageDims: IDimensions); forSize(width: number, height: number): FaceDetection; }