UNPKG

@vladmandic/face-api

Version:

JavaScript module for Face Detection and Face Recognition Using Tensorflow/JS

22 lines (21 loc) 946 B
import * as tf from '@tensorflow/tfjs/dist/tf.es2017.js'; import { FaceDetection } from '../classes/FaceDetection'; import { NetInput, TNetInput } from '../dom'; import { NeuralNetwork } from '../NeuralNetwork'; import { ISsdMobilenetv1Options } from './SsdMobilenetv1Options'; import { NetParams } from './types'; export declare class SsdMobilenetv1 extends NeuralNetwork<NetParams> { constructor(); forwardInput(input: NetInput): any; forward(input: TNetInput): Promise<any>; locateFaces(input: TNetInput, options?: ISsdMobilenetv1Options): Promise<FaceDetection[]>; protected getDefaultModelName(): string; protected extractParamsFromWeigthMap(weightMap: tf.NamedTensorMap): { params: NetParams; paramMappings: import("../common").ParamMapping[]; }; protected extractParams(weights: Float32Array): { params: NetParams; paramMappings: import("../common").ParamMapping[]; }; }