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

18 lines (13 loc) 471 B
import { SsdMobilenetv1 } from './SsdMobilenetv1'; export * from './SsdMobilenetv1'; export * from './SsdMobilenetv1Options'; export function createSsdMobilenetv1(weights: Float32Array) { const net = new SsdMobilenetv1(); net.extractWeights(weights); return net; } export function createFaceDetectionNet(weights: Float32Array) { return createSsdMobilenetv1(weights); } // alias for backward compatibily export class FaceDetectionNet extends SsdMobilenetv1 {}