Current configuration
Draw helper classes that can draw detected objects on canvas using specified draw
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
Performance object that contains values for all recently performed operations
currenty processed image tensor and canvas
Last known result of detect run
Current state of Human library
Current version of Human library in semver format
Enhance method performs additional enhacements to face image previously detected for futher processing
Tensor
Process input as return canvas and tensor
Explicit backend initialization
Promise
Load method preloads all configured models on-demand
Promise
Math method find best match between provided face descriptor and predefined database of known descriptors
best match
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 valuesSimmilarity method calculates simmilarity between two provided face descriptors (face embeddings)
similarity: number
Validate current configuration schema
Human* library main class
All methods and properties are available only as members of Human class
Config
instance