face-api/src/dom/types.ts

12 lines
386 B
TypeScript
Raw Normal View History

import * as tf from '../../dist/tfjs.esm.js';
2020-08-18 13:54:53 +02:00
import { NetInput } from './NetInput';
export type TMediaElement = HTMLImageElement | HTMLVideoElement | HTMLCanvasElement
export type TResolvedNetInput = TMediaElement | tf.Tensor3D | tf.Tensor4D
export type TNetInputArg = string | TResolvedNetInput
2020-12-23 17:26:55 +01:00
export type TNetInput = TNetInputArg | Array<TNetInputArg> | NetInput | tf.Tensor4D