UNPKG

@timebutt/face-api.js

Version:

JavaScript API for face detection and face recognition in the browser with tensorflow.js

7 lines (6 loc) 384 B
import * as tf from '@tensorflow/tfjs-core'; import { NetInput } from './NetInput'; export type TMediaElement = HTMLImageElement | HTMLVideoElement | HTMLCanvasElement; export type TResolvedNetInput = TMediaElement | tf.Tensor3D | tf.Tensor4D; export type TNetInputArg = string | TResolvedNetInput; export type TNetInput = TNetInputArg | Array<TNetInputArg> | NetInput | tf.Tensor4D;