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

10 lines (5 loc) 356 B
import type { Tensor3D, Tensor4D } from '../../dist/tfjs.esm'; import { NetInput } from './NetInput'; export type TMediaElement = HTMLImageElement | HTMLVideoElement | HTMLCanvasElement export type TResolvedNetInput = TMediaElement | Tensor3D | Tensor4D export type TNetInput = string | TResolvedNetInput | Array<string | TResolvedNetInput> | NetInput