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

11 lines (8 loc) 556 B
import { FaceDetection } from '../classes/FaceDetection'; import { TNetInput } from '../dom/index'; import { SsdMobilenetv1Options } from '../ssdMobilenetv1/SsdMobilenetv1Options'; import { TinyFaceDetectorOptions } from '../tinyFaceDetector/TinyFaceDetectorOptions'; import { TinyYolov2Options } from '../tinyYolov2/index'; export type FaceDetectionOptions = TinyFaceDetectorOptions | SsdMobilenetv1Options | TinyYolov2Options // eslint-disable-next-line no-unused-vars export type FaceDetectionFunction = (input: TNetInput) => Promise<FaceDetection[]>