Current configuration
Calculates distance between two descriptors
Draw helper classes that can draw detected objects on canvas using specified draw
meta-function that performs draw for: canvas, face, body, hand
draw detected bodies
draw processed canvas
draw detected faces
draw detected gestures
draw detected hands
draw detected objects
draw combined person results instead of individual detection result objects
Object containing environment information used for diagnostics
Container for events dispatched by Human {@type} EventTarget 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
index
index array index where best match was found or -1 if no matchesdistance
of given descriptor to the best matchsimilarity
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
similarity between two face descriptors normalized to 0..1 range where 0 is no similarity and 1 is perfect similarity
Current state of Human library
Current version of Human library in semver format
Compare two input tensors for pixel simmilarity
human.image
to process any valid input and get a tensor that can be used for compareExplicit backend initialization
Load method preloads all configured models on-demand
Promise
Utility wrapper for performance.now()
Reset configuration to default values
Segmentation method takes any input and returns processed canvas with body segmentation
Returns:
data
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 valuesValidate current configuration schema
Human* library main class
All methods and properties are available only as members of Human class
Config
instance of Human