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

19 lines (18 loc) 928 B
import * as tf from '../../dist/tfjs.esm'; import { NetInput, TNetInput } from '../dom/index'; import { NeuralNetwork } from '../NeuralNetwork'; import { IFaceFeatureExtractor, TinyFaceFeatureExtractorParams } from './types'; export declare class TinyFaceFeatureExtractor extends NeuralNetwork<TinyFaceFeatureExtractorParams> implements IFaceFeatureExtractor<TinyFaceFeatureExtractorParams> { constructor(); forwardInput(input: NetInput): tf.Tensor4D; forward(input: TNetInput): Promise<tf.Tensor4D>; protected getDefaultModelName(): string; protected extractParamsFromWeightMap(weightMap: tf.NamedTensorMap): { params: TinyFaceFeatureExtractorParams; paramMappings: import("../common/types").ParamMapping[]; }; protected extractParams(weights: Float32Array): { params: TinyFaceFeatureExtractorParams; paramMappings: import("../common/types").ParamMapping[]; }; }