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

13 lines (10 loc) 624 B
import { TNetInput } from '../dom/index'; import { SsdMobilenetv1Options } from '../ssdMobilenetv1/SsdMobilenetv1Options'; import { DetectAllFacesTask, DetectSingleFaceTask } from './DetectFacesTasks'; import { FaceDetectionOptions } from './types'; export function detectSingleFace(input: TNetInput, options: FaceDetectionOptions = new SsdMobilenetv1Options()): DetectSingleFaceTask { return new DetectSingleFaceTask(input, options); } export function detectAllFaces(input: TNetInput, options: FaceDetectionOptions = new SsdMobilenetv1Options()): DetectAllFacesTask { return new DetectAllFacesTask(input, options); }