Current configuration
Calculates distance between two descriptors
calculation options
order
is 2 (default), Minkowski distance algorithm of nth order if order
is higher than 2Draw helper classes that can draw detected objects on canvas using specified draw
meta-function that performs draw for: canvas, face, body, hand
Optional
drawOptions: Partial<DrawOptions>draw detected bodies
Optional
drawOptions: Partial<DrawOptions>draw detected faces
Optional
drawOptions: Partial<DrawOptions>draw detected gestures
Optional
drawOptions: Partial<DrawOptions>draw detected hands
Optional
drawOptions: Partial<DrawOptions>draw detected objects
Optional
drawOptions: Partial<DrawOptions>draw combined person results instead of individual detection result objects
Optional
drawOptions: Partial<DrawOptions>Object containing environment information used for diagnostics
Container for events dispatched by Human Possible events:
create
: triggered when Human object is instantiatedload
: triggered when models are loaded (explicitly or on-demand)image
: triggered when input image is processedresult
: triggered when detection is completewarmup
: triggered when warmup is completeerror
: triggered on some errorsReference face triangualtion array of 468 points, used for triangle references between points
Refernce UV map of 468 values, used for 3D mapping of the face mesh
WebGL debug info
Matches given descriptor to a closest entry in array of descriptors
face descriptor
array of face descriptors to commpare given descriptor to
see similarity
method for options description
Returns
index
index array index where best match was found or -1 if no matchesdistance
calculated distance
of given descriptor to the best matchsimilarity
calculated normalized similarity
of given descriptor to the best matchPerformance object that contains values for all recently performed operations
currenty processed image tensor and canvas
Last known result of detect run
Calculates normalized similarity between two face descriptors based on their distance
calculation options
order
is 2 (default), Minkowski distance algorithm of nth order if order
is higher than 2Current state of Human library
Instance of TensorFlow/JS used by Human
Current version of Human library in semver format
WebCam helper methods
Compare two input tensors for pixel simmilarity
human.image
to process any valid input and get a tensor that can be used for compareget model loading/loaded stats
Load method preloads all configured models on-demand
Run detect with tensorflow profiling
human.result
Segmentation method takes any input and returns processed canvas with body segmentation
Optional
background: Inputdata
as raw data array with per-pixel segmentation valuescanvas
as canvas which is input image filtered with segementation data and optionally merged with background image. canvas alpha values are set to segmentation values for easy mergingalpha
as grayscale canvas that represents segmentation alpha valuesContinously detect video frames
HTMLVideoElement input
boolean run continously or stop if already running, default true
number delay detection between frames for number of miliseconds, default 0
Human* library main class
All methods and properties are available only as members of Human class
Param
Config
Returns
instance of Human