Options
All
  • Public
  • Public/Protected
  • All
Menu

@vladmandic/human - v2.2.0

Index

References

default

Renames and exports Human

Type aliases

Error

Error: { error: string }

Error message

Type declaration

  • error: string

Events

Events: "create" | "load" | "image" | "result" | "warmup"

Events dispatched by human.events

  • create: triggered when Human object is instantiated
  • load: triggered when models are loaded (explicitly or on-demand)
  • image: triggered when input image is this.processed
  • result: triggered when detection is complete
  • warmup: triggered when warmup is complete

GestureResult

GestureResult: { face: number; gesture: FaceGesture } | { gesture: IrisGesture; iris: number } | { body: number; gesture: BodyGesture } | { gesture: HandGesture; hand: number }

Gesture results

Input

Input: Tensor | ImageData | ImageBitmap | HTMLImageElement | HTMLMediaElement | HTMLVideoElement | HTMLCanvasElement | OffscreenCanvas | typeof Image | typeof env.env.Canvas

Defines all possible input types for Human detection

TensorFlow

TensorFlow: typeof tf

Instance of TensorFlow/JS

external

Variables

Const defaults

defaults: Config = ...

Const env

env: Env = ...