UNPKG

@vladmandic/face-api

Version:

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

23 lines (18 loc) 405 B
import * as tf from '@tensorflow/tfjs/dist/tf.es2017.js'; import { FCParams } from '../common'; export type AgeAndGenderPrediction = { age: number gender: Gender genderProbability: number } export enum Gender { FEMALE = 'female', MALE = 'male' } export type NetOutput = { age: tf.Tensor1D, gender: tf.Tensor2D } export type NetParams = { fc: { age: FCParams gender: FCParams } }