2021-10-19 17:28:59 +02:00
<!DOCTYPE html> < html class = "default no-js" > < head > < meta charSet = "utf-8" / > < meta http-equiv = "x-ua-compatible" content = "IE=edge" / > < title > Human | @vladmandic/human - v2.3.5< / title > < meta name = "description" content = "Documentation for @vladmandic/human - v2.3.5" / > < meta name = "viewport" content = "width=device-width, initial-scale=1" / > < link rel = "stylesheet" href = "../assets/style.css" / > < link rel = "stylesheet" href = "../assets/highlight.css" / > < script async src = "../assets/search.js" id = "search-script" > < / script > < / head > < body > < script > document . body . classList . add ( localStorage . getItem ( & quot ; tsd - theme & quot ; ) || & quot ; os & quot ; ) < / script > < header > < div class = "tsd-page-toolbar" > < div class = "container" > < div class = "table-wrap" > < div class = "table-cell" id = "tsd-search" data-base = ".." > < div class = "field" > < label for = "tsd-search-field" class = "tsd-widget search no-caption" > Search< / label > < input type = "text" id = "tsd-search-field" / > < / div > < ul class = "results" > < li class = "state loading" > Preparing search index...< / li > < li class = "state failure" > The search index is not available< / li > < / ul > < a href = "../index.html" class = "title" > @vladmandic/human - v2.3.5< / a > < / div > < div class = "table-cell" id = "tsd-widgets" > < div id = "tsd-filter" > < a href = "#" class = "tsd-widget options no-caption" data-toggle = "options" > Options< / a > < div class = "tsd-filter-group" > < div class = "tsd-select" id = "tsd-filter-visibility" > < span class = "tsd-select-label" > All< / span > < ul class = "tsd-select-list" > < li data-value = "public" > Public< / li > < li data-value = "protected" > Public/Protected< / li > < li data-value = "private" class = "selected" > All< / li > < / ul > < / div > < input type = "checkbox" id = "tsd-filter-inherited" checked / > < label class = "tsd-widget" for = "tsd-filter-inherited" > Inherited< / label > < / div > < / div > < a href = "#" class = "tsd-widget menu no-caption" data-toggle = "menu" > Menu< / a > < / div > < / div > < / div > < / div > < div class = "tsd-page-title" > < div class = "container" > < ul class = "tsd-breadcrumb" > < li > < a href = "../index.html" > @vladmandic/human - v2.3.5< / a > < / li > < li > < a href = "Human.html" > Human< / a > < / li > < / ul > < h1 > Class Human< / h1 > < / div > < / div > < / header > < div class = "container container-main" > < div class = "row" > < div class = "col-8 col-content" > < section class = "tsd-panel tsd-comment" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > < em > Human< / em > * library main class< / p >
< / div > < div > < p > All methods and properties are available only as members of Human class< / p >
< ul >
< li > Configuration object definition: < a href = "../interfaces/Config.html" > Config< / a > < / li >
< li > Results object definition: < a href = "../interfaces/Result.html" > Result< / a > < / li >
< li > Possible inputs: < a href = "../index.html#Input" > Input< / a > < / li >
< / ul >
< / div > < dl class = "tsd-comment-tags" > < dt > param userConfig:< / dt > < dd > < p > < a href = "../interfaces/Config.html" > Config< / a > < / p >
< / dd > < dt > returns< / dt > < dd > < p > instance< / p >
2021-10-19 17:28:59 +02:00
< / dd > < / dl > < / div > < / section > < section class = "tsd-panel tsd-hierarchy" > < h3 > Hierarchy< / h3 > < ul class = "tsd-hierarchy" > < li > < span class = "target" > Human< / span > < / li > < / ul > < / section > < section class = "tsd-panel-group tsd-index-group" > < h2 > Index< / h2 > < section class = "tsd-panel tsd-index-panel" > < div class = "tsd-index-content" > < section class = "tsd-index-section " > < h3 > Constructors< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < a href = "Human.html#constructor" class = "tsd-kind-icon" > constructor< / a > < / li > < / ul > < / section > < section class = "tsd-index-section " > < h3 > Properties< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#config" class = "tsd-kind-icon" > config< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#distance" class = "tsd-kind-icon" > distance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#draw" class = "tsd-kind-icon" > draw< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#env" class = "tsd-kind-icon" > env< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#events" class = "tsd-kind-icon" > events< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceTriangulation" class = "tsd-kind-icon" > face< wbr / > Triangulation< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceUVMap" class = "tsd-kind-icon" > faceUVMap< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#gl" class = "tsd-kind-icon" > gl< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#match" class = "tsd-kind-icon" > match< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#performance" class = "tsd-kind-icon" > performance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#process" class = "tsd-kind-icon" > process< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#result" class = "tsd-kind-icon" > result< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#similarity" class = "tsd-kind-icon" > similarity< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#state" class = "tsd-kind-icon" > state< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#version" class = "tsd-kind-icon" > version< / a > < / li > < / ul > < / section > < section class = "tsd-index-section " > < h3 > Methods< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#detect" class = "tsd-kind-icon" > detect< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#enhance" class = "tsd-kind-icon" > enhance< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#image" class = "tsd-kind-icon" > image< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#init" class = "tsd-kind-icon" > init< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#load" class = "tsd-kind-icon" > load< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#next" class = "tsd-kind-icon" > next< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#now" class = "tsd-kind-icon" > now< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#reset" class = "tsd-kind-icon" > reset< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#segmentation" class = "tsd-kind-icon" > segmentation< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#validate" class = "tsd-kind-icon" > validate< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#warmup" class = "tsd-kind-icon" > warmup< / a > < / li > < / ul > < / section > < / div > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > Constructors< / h2 > < section class = "tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class" > < a id = "constructor" class = "tsd-anchor" > < / a > < h3 > constructor< / h3 > < ul class = "tsd-signatures tsd-kind-constructor tsd-parent-kind-class" > < li
2021-09-19 01:09:02 +02:00
< p > Constructor for < strong > Human< / strong > library that is futher used for all operations< / p >
2021-09-24 15:55:27 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < a href = "Human.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Human< / a > < / h4 > < div > < p > instance: < a href = "Human.html" > Human< / a > < / p >
2021-10-19 13:58:51 +02:00
< / div > < / li > < / ul > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > Properties< / h2 > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "config" class = "tsd-anchor" > < / a > < h3 > config< / h3 > < div class = "tsd-signature tsd-kind-icon" > config< span class = "tsd-signature-symbol" > :< / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L102" > human.ts:102< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current configuration< / p >
< ul >
2021-09-24 15:55:27 +02:00
< li > Definition: < a href = "../interfaces/Config.html" > Config< / a > < / li >
< li > Defaults: < a href = "https://github.com/vladmandic/human/blob/main/src/config.ts#L292" > config< / a > < / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "distance" class = "tsd-anchor" > < / a > < h3 > distance< / h3 > < div class = "tsd-signature tsd-kind-icon" > distance< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > = match.distance< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L260" > human.ts:260< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-30 20:28:16 +02:00
< p > Calculates distance between two descriptors< / p >
< ul >
< li > Minkowski distance algorithm of nth order if < code > order< / code > is different than 2< / li >
< li > Euclidean distance if < code > order< / code > is 2 (default)< / li >
< / ul >
< / div > < div > < p > Options:< / p >
< ul >
< li > < code > order< / code > < / li >
< / ul >
< p > Note: No checks are performed for performance reasons so make sure to pass valid number arrays of equal length< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < / ul > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "draw" class = "tsd-anchor" > < / a > < h3 > draw< / h3 > < div class = "tsd-signature tsd-kind-icon" > draw< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > { < / span > all< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > body< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > face< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > gesture< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > hand< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > object< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > ; < / span > options< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/DrawOptions.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > DrawOptions< / a > < span class = "tsd-signature-symbol" > ; < / span > person< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > }< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L138" > human.ts:138< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Draw helper classes that can draw detected objects on canvas using specified draw< / p >
< ul >
< li > options: < a href = "../interfaces/DrawOptions.html" > DrawOptions< / a > global settings for all draw operations, can be overriden for each draw method< / li >
< li > face: draw detected faces< / li >
< li > body: draw detected people and body parts< / li >
< li > hand: draw detected hands and hand parts< / li >
2021-09-22 21:16:14 +02:00
< li > canvas: draw processed canvas which is a processed copy of the input< / li >
2021-09-19 01:09:02 +02:00
< li > all: meta-function that performs: canvas, face, body, hand< / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > all< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > body< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > face< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > gesture< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > hand< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > object< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > options< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/DrawOptions.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > DrawOptions< / a > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > person< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < / h5 > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "env" class = "tsd-anchor" > < / a > < h3 > env< / h3 > < div class = "tsd-signature tsd-kind-icon" > env< span class = "tsd-signature-symbol" > :< / span > < a href = "../index.html#Env" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Env< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L128" > human.ts:128< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Object containing environment information used for diagnostics< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "events" class = "tsd-anchor" > < / a > < h3 > events< / h3 > < div class = "tsd-signature tsd-kind-icon" > events< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > undefined< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > EventTarget< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L156" > human.ts:156< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Container for events dispatched by Human< / p >
< / div > < div > < p > Possible events:< / p >
< ul >
< li > < code > create< / code > : triggered when Human object is instantiated< / li >
< li > < code > load< / code > : triggered when models are loaded (explicitly or on-demand)< / li >
2021-09-22 21:16:14 +02:00
< li > < code > image< / code > : triggered when input image is processed< / li >
2021-09-19 01:09:02 +02:00
< li > < code > result< / code > : triggered when detection is complete< / li >
< li > < code > warmup< / code > : triggered when warmup is complete< / li >
< li > < code > error< / code > : triggered on some errors< / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceTriangulation" class = "tsd-anchor" > < / a > < h3 > face< wbr / > Triangulation< / h3 > < div class = "tsd-signature tsd-kind-icon" > face< wbr / > Triangulation< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L158" > human.ts:158< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Reference face triangualtion array of 468 points, used for triangle references between points< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceUVMap" class = "tsd-anchor" > < / a > < h3 > faceUVMap< / h3 > < div class = "tsd-signature tsd-kind-icon" > faceUVMap< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > []< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L160" > human.ts:160< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Refernce UV map of 468 values, used for 3D mapping of the face mesh< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "gl" class = "tsd-anchor" > < / a > < h3 > gl< / h3 > < div class = "tsd-signature tsd-kind-icon" > gl< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Record< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > unknown< / span > < span class = "tsd-signature-symbol" > > < / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L167" > human.ts:167< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > WebGL debug info< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "match" class = "tsd-anchor" > < / a > < h3 > match< / h3 > < div class = "tsd-signature tsd-kind-icon" > match< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > threshold< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > = match.match< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L261" > human.ts:261< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > threshold< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-30 20:28:16 +02:00
< p > Matches given descriptor to a closest entry in array of descriptors< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > face descriptor< / p >
< / div > < / div > < / li > < li > < h5 > descriptors: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > array of face descriptors to commpare given descriptor to< / p >
< p > Options:< / p >
< ul >
< li > < code > order< / code > see < a href = "Human.html#distance" > distance< / a > method< / li >
< li > < code > threshold< / code > match will return result first result for which < a href = "Human.html#distance" > distance< / a > is below < code > threshold< / code > even if there may be better results< / li >
< / ul >
< / div > < / div > < / li > < li > < h5 > options: < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > threshold< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > threshold< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < / ul > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < / h4 > < div > < p > object with index, distance and similarity< / p >
< ul >
< li > < code > index< / code > index array index where best match was found or -1 if no matches< / li >
< li > < a href = "Human.html#distance" > distance< / a > calculated < code > distance< / code > of given descriptor to the best match< / li >
< li > < a href = "Human.html#similarity" > similarity< / a > calculated normalized < code > similarity< / code > of given descriptor to the best match< / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < / ul > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "performance" class = "tsd-anchor" > < / a > < h3 > performance< / h3 > < div class = "tsd-signature tsd-kind-icon" > performance< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Record< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > > < / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L162" > human.ts:162< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Performance object that contains values for all recently performed operations< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "process" class = "tsd-anchor" > < / a > < h3 > process< / h3 > < div class = "tsd-signature tsd-kind-icon" > process< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > { < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L117" > human.ts:117< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > currenty processed image tensor and canvas< / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "result" class = "tsd-anchor" > < / a > < h3 > result< / h3 > < div class = "tsd-signature tsd-kind-icon" > result< span class = "tsd-signature-symbol" > :< / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L108" > human.ts:108< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Last known result of detect run< / p >
< ul >
< li > Can be accessed anytime after initial detection< / li >
2021-09-24 15:55:27 +02:00
< li > Definition: < a href = "../interfaces/Result.html" > Result< / a > < / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "similarity" class = "tsd-anchor" > < / a > < h3 > similarity< / h3 > < div class = "tsd-signature tsd-kind-icon" > similarity< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > = match.similarity< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L259" > human.ts:259< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-30 20:28:16 +02:00
< p > Calculates normalized similarity between two descriptors based on their < code > distance< / code > < / p >
2021-10-19 13:58:51 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < span class = "tsd-signature-symbol" > { < / span > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > order< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < / ul > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "state" class = "tsd-anchor" > < / a > < h3 > state< / h3 > < div class = "tsd-signature tsd-kind-icon" > state< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L114" > human.ts:114< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current state of Human library< / p >
< ul >
< li > Can be polled to determine operations that are currently executed< / li >
< li > Progresses through: ' config' , ' check' , ' backend' , ' load' , ' run:< model > ' , ' idle' < / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "version" class = "tsd-anchor" > < / a > < h3 > version< / h3 > < div class = "tsd-signature tsd-kind-icon" > version< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L96" > human.ts:96< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current version of Human library in < em > semver< / em > format< / p >
2021-10-19 17:28:59 +02:00
< / div > < / div > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > Methods< / h2 > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "detect" class = "tsd-anchor" > < / a > < h3 > detect< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > detect< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#Error" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Error< / a > < span class = "tsd-signature-symbol" > | < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L390" > human.ts:390< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Main detection method< / p >
< ul >
< li > Analyze configuration: < a href = "../interfaces/Config.html" > Config< / a > < / li >
2021-09-22 21:16:14 +02:00
< li > Pre-process input: < a href = "../index.html#Input" > Input< / a > < / li >
2021-09-19 01:09:02 +02:00
< li > Run inference for all configured models< / li >
< li > Process and return result: < a href = "../interfaces/Result.html" > Result< / a > < / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#Error" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Error< / a > < span class = "tsd-signature-symbol" > | < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "enhance" class = "tsd-anchor" > < / a > < h3 > enhance< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > enhance< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L300" > human.ts:300< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Enhance method performs additional enhacements to face image previously detected for futher processing< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Tensor< / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "image" class = "tsd-anchor" > < / a > < h3 > image< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > image< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , getTensor< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L273" > human.ts:273< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Process input as return canvas and tensor< / p >
2021-10-19 17:28:59 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > getTensor: < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > = true< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < / h4 > < div > < / div > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > Tensor< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "init" class = "tsd-anchor" > < / a > < h3 > init< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > init< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L311" > human.ts:311< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Explicit backend initialization< / p >
< ul >
< li > Normally done implicitly during initial load phase< / li >
< li > Call to explictly register and initialize TFJS backend without any other operations< / li >
2021-09-21 04:06:49 +02:00
< li > Use when changing backend during runtime< / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-09-21 04:06:49 +02:00
< / div > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Promise< void > < / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "load" class = "tsd-anchor" > < / a > < h3 > load< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > load< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L323" > human.ts:323< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Load method preloads all configured models on-demand< / p >
< ul >
< li > Not explicitly required as any required model is load implicitly on it' s first run< / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Promise< void > < / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "next" class = "tsd-anchor" > < / a > < h3 > next< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > next< span class = "tsd-signature-symbol" > (< / span > result< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L366" > human.ts:366< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Runs interpolation using last known result and returns smoothened result
Interpolation is based on time since last known result so can be called independently< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > result: < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "now" class = "tsd-anchor" > < / a > < h3 > now< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > now< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L264" > human.ts:264< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Utility wrapper for performance.now()< / p >
< / div > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "reset" class = "tsd-anchor" > < / a > < h3 > reset< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > reset< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L247" > human.ts:247< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 20:07:53 +02:00
< p > Reset configuration to default values< / p >
2021-10-19 17:28:59 +02:00
< / div > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "segmentation" class = "tsd-anchor" > < / a > < h3 > segmentation< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > segmentation< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , background< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-symbol" > { < / span > alpha< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L290" > human.ts:290< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-22 21:16:14 +02:00
< p > Segmentation method takes any input and returns processed canvas with body segmentation< / p >
2021-09-19 01:09:02 +02:00
< ul >
< li > Optional parameter background is used to fill the background with specific input< / li >
2021-09-22 21:16:14 +02:00
< li > Segmentation is not triggered as part of detect process< / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-09-22 21:16:14 +02:00
< / div > < div > < p > Returns:< / p >
< ul >
< li > < code > data< / code > as raw data array with per-pixel segmentation values< / li >
2021-09-22 22:00:43 +02:00
< li > < code > canvas< / code > 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 merging< / li >
2021-09-22 21:16:14 +02:00
< li > < code > alpha< / code > as grayscale canvas that represents segmentation alpha values< / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > background: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-symbol" > { < / span > alpha< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "validate" class = "tsd-anchor" > < / a > < h3 > validate< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > validate< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > expected< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > reason< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > where< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > []< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L254" > human.ts:254< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 20:07:53 +02:00
< p > Validate current configuration schema< / p >
2021-10-19 17:28:59 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > expected< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > reason< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > where< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > []< / span > < / h4 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "warmup" class = "tsd-anchor" > < / a > < h3 > warmup< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > warmup< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > { < / span > error< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L376" > human.ts:376< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Warmup method pre-initializes all configured models for faster inference< / p >
< ul >
< li > can take significant time on startup< / li >
< li > only used for < code > webgl< / code > and < code > humangl< / code > backends< / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > { < / span > error< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-10-19 17:28:59 +02:00
< / div > < / li > < / ul > < / section > < / section > < / div > < div class = "col-4 col-menu menu-sticky-wrap menu-highlight" > < nav class = "tsd-navigation primary" > < ul > < li class = "" > < a href = "../index.html" > Exports< / a > < / li > < / ul > < / nav > < nav class = "tsd-navigation secondary menu-sticky" > < ul > < li class = "current tsd-kind-class" > < a href = "Human.html" class = "tsd-kind-icon" > Human< / a > < ul > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < a href = "Human.html#constructor" class = "tsd-kind-icon" > constructor< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#config" class = "tsd-kind-icon" > config< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#distance" class = "tsd-kind-icon" > distance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#draw" class = "tsd-kind-icon" > draw< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#env" class = "tsd-kind-icon" > env< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#events" class = "tsd-kind-icon" > events< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceTriangulation" class = "tsd-kind-icon" > face< wbr / > Triangulation< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceUVMap" class = "tsd-kind-icon" > faceUVMap< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#gl" class = "tsd-kind-icon" > gl< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#match" class = "tsd-kind-icon" > match< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#performance" class = "tsd-kind-icon" > performance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#process" class = "tsd-kind-icon" > process< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#result" class = "tsd-kind-icon" > result< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#similarity" class = "tsd-kind-icon" > similarity< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#state" class = "tsd-kind-icon" > state< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#version" class = "tsd-kind-icon" > version< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#detect" class = "tsd-kind-icon" > detect< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#enhance" class = "tsd-kind-icon" > enhance< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#image" class = "tsd-kind-icon" > image< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#init" class = "tsd-kind-icon" > init< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#load" class = "tsd-kind-icon" > load< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#next" class = "tsd-kind-icon" > next< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#now" class = "tsd-kind-icon" > now< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#reset" class = "tsd-kind-icon" > reset< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#segmentation" class = "tsd-kind-icon" > segmentation< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#validate" class = "tsd-kind-icon" > validate< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#warmup" class = "tsd-kind-icon" > warmup< / a > < / li > < / ul > < / li > < / ul > < / nav > < / div > < / div > < / div > < footer class = "" > < div class = "container" > < h2 > Legend< / h2 > < div class = "tsd-legend-group" > < ul class = "tsd-legend" > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Constructor< / span > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Property< / span > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Method< / span > < / li > < / ul > < ul class = "tsd-legend" > < li class = "tsd-kind-property tsd-parent-kind-interface" > < span class = "tsd-kind-icon"