2022-05-09 14:16:00 +02:00
<!DOCTYPE html> < html class = "default" > < head > < meta charSet = "utf-8" / > < meta http-equiv = "x-ua-compatible" content = "IE=edge" / > < title > Human | @vladmandic/human - v2.7.1< / title > < meta name = "description" content = "Documentation for @vladmandic/human - v2.7.1" / > < 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 ( "tsd-theme" ) || "os" ) < / 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.7.1< / 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.7.1< / 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" >
2022-02-10 18:27:21 +01: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 of < a href = "Human.html" > Human< / a > < / p >
< / 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#tf" class = "tsd-kind-icon" > tf< / 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#analyze" class = "tsd-kind-icon" > analyze< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#compare" class = "tsd-kind-icon" > compare< / 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#emit" class = "tsd-kind-icon" > emit< / 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#profile" class = "tsd-kind-icon" > profile< / 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
< p > Constructor for < strong > Human< / strong > library that is futher used for all operations< / p >
< / 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > user configuration object < a href = "../interfaces/Config.html" > Config< / a > < / p >
< / div > < / div > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < a href = "Human.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Human< / a > < / h4 > < / 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 class = "tsd-anchor-link" > config< a href = "#config" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L62" > src/human.ts:62< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Current configuration< / p >
< ul >
< li > Defaults: < a href = "https://github.com/vladmandic/human/blob/main/src/config.ts#L262" > config< / a > < / li >
< / ul >
2022-04-01 15:12:04 +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 class = "tsd-anchor-link" > distance< a href = "#distance" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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#L212" > src/human.ts:212< / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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" >
2022-02-10 18:27:21 +01:00
< p > Calculates distance between two descriptors< / p >
2022-04-01 15:12:04 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > calculation options< / p >
< ul >
< li > order - algorithm to use
Euclidean distance if < code > order< / code > is 2 (default), Minkowski distance algorithm of nth order if < code > order< / code > is higher than 2< / li >
< li > multiplier - by how much to enhance difference analysis in range of 1..100
default is 20 which normalizes results to similarity above 0.5 can be considered a match< / li >
< / ul >
2022-04-11 17:45:24 +02:00
< / div > < / div > < / 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 class = "tsd-anchor-link" > draw< a href = "#draw" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > ; < / span > body< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/BodyResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > BodyResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLImageElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type
2022-02-10 18:27:21 +01:00
< p > Draw helper classes that can draw detected objects on canvas using specified draw< / p >
< ul >
< li > canvas: draws input to canvas< / li >
2022-04-11 17:45:24 +02:00
< li > options: are global settings for all draw operations, can be overriden for each draw method < a href = "../index.html#DrawOptions" > DrawOptions< / a > < / li >
2022-02-10 18:27:21 +01:00
< li > face, body, hand, gesture, object, person: draws detected results as overlays on canvas< / li >
< / ul >
2022-04-11 17:45:24 +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-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ]< / 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" >
2022-02-10 18:27:21 +01:00
< p > meta-function that performs draw for: canvas, face, body, hand< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > body< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/BodyResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > BodyResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/BodyResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > BodyResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw detected bodies< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/BodyResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > BodyResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLImageElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / 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-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLImageElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / 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-type" > void< / 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" >
2022-02-10 18:27:21 +01:00
< p > draw processed canvas< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLImageElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > < / h5 > < / li > < li > < h5 > output: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / 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-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > face< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/FaceResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/FaceResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw detected faces< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/FaceResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > gesture< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#GestureResult" class = "tsd-signature-type" data-tsd-kind = "Type alias" > GestureResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#GestureResult" class = "tsd-signature-type" data-tsd-kind = "Type alias" > GestureResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw detected gestures< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../index.html#GestureResult" class = "tsd-signature-type" data-tsd-kind = "Type alias" > GestureResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > hand< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/HandResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > HandResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/HandResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > HandResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw detected hands< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/HandResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > HandResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > object< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/ObjectResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > ObjectResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/ObjectResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > ObjectResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw detected objects< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/ObjectResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > ObjectResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / li > < li class = "tsd-parameter" > < h5 > options< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / a > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > person< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/PersonResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PersonResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / h5 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-type-literal" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > inCanvas< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > , result< span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/PersonResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PersonResult< / a > < span class = "tsd-signature-symbol" > []< / span > , drawOptions< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > draw combined person results instead of individual detection result objects< / p >
2022-04-11 17:45:24 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > inCanvas: < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / h5 > < / li > < li > < h5 > result: < a href = "../interfaces/PersonResult.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > PersonResult< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > drawOptions: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#DrawOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > DrawOptions< / 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 > < / li > < / ul > < / li > < / ul > < / 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 class = "tsd-anchor-link" > env< a href = "#env" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < div class = "tsd-signature tsd-kind-icon" > env< span class = "tsd-signature-symbol" > :< / span > < a href = "Env.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Env< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L85" > src/human.ts:85< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > Object containing environment information used for diagnostics< / p >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "events" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > events< a href = "#events" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L109" > src/human.ts:109< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Container for events dispatched by Human
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 >
< li > < code > image< / code > : triggered when input image is processed< / li >
< 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 >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceTriangulation" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > face< wbr / > Triangulation< a href = "#faceTriangulation" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L111" > src/human.ts:111< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Reference face triangualtion array of 468 points, used for triangle references between points< / p >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceUVMap" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > faceUVMap< a href = "#faceUVMap" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L113" > src/human.ts:113< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Refernce UV map of 468 values, used for 3D mapping of the face mesh< / p >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "gl" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > gl< a href = "#gl" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L120" > src/human.ts:120< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > WebGL debug info< / p >
2022-04-01 15:12:04 +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 class = "tsd-anchor-link" > match< a href = "#match" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.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 > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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#L214" > src/human.ts:214< / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.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 > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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" >
2022-02-10 18:27:21 +01:00
< p > Matches given descriptor to a closest entry in array of descriptors< / p >
2022-04-01 15:12:04 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor: < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > face descriptor< / p >
2022-04-01 15:12:04 +02:00
< / div > < / div > < / li > < li > < h5 > descriptors: < a href = "../modules/match.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" >
2022-02-10 18:27:21 +01:00
< p > array of face descriptors to commpare given descriptor to< / p >
2022-04-01 15:12:04 +02:00
< / div > < / div > < / li > < li > < h5 > options: < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > see < code > similarity< / code > method for options description
2022-02-10 18:27:21 +01:00
Returns< / p >
< ul >
< li > < code > index< / code > index array index where best match was found or -1 if no matches< / li >
2022-04-01 15:12:04 +02:00
< li > < code > distance< / code > calculated < code > distance< / code > of given descriptor to the best match< / li >
< li > < code > similarity< / code > calculated normalized < code > similarity< / code > of given descriptor to the best match< / li >
2022-02-10 18:27:21 +01:00
< / ul >
< / div > < / div > < / 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 > < 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 class = "tsd-anchor-link" > performance< a href = "#performance" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L115" > src/human.ts:115< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Performance object that contains values for all recently performed operations< / p >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "process" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > process< a href = "#process" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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#L76" > src/human.ts:76< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > currenty processed image tensor and canvas< / p >
< / 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < / 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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 class = "tsd-anchor-link" > result< a href = "#result" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L67" > src/human.ts:67< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Last known result of detect run< / p >
< ul >
< li > Can be accessed anytime after initial detection< / li >
< / ul >
2022-04-01 15:12:04 +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 class = "tsd-anchor-link" > similarity< a href = "#similarity" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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#L210" > src/human.ts:210< / 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 = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < 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" >
2022-02-10 18:27:21 +01:00
< p > Calculates normalized similarity between two face descriptors based on their < code > distance< / code > < / p >
2022-04-01 15:12:04 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../modules/match.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < a href = "../modules/match.html#MatchOptions" class = "tsd-signature-type" data-tsd-kind = "Type alias" > MatchOptions< / a > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2022-02-10 18:27:21 +01:00
< p > calculation options< / p >
< ul >
< li > order - algorithm to use
Euclidean distance if < code > order< / code > is 2 (default), Minkowski distance algorithm of nth order if < code > order< / code > is higher than 2< / li >
< li > multiplier - by how much to enhance difference analysis in range of 1..100
default is 20 which normalizes results to similarity above 0.5 can be considered a match< / li >
< li > min - normalize similarity result to a given range< / li >
< li > max - normalzie similarity resutl to a given range
default is 0.2...0.8
Returns similarity between two face descriptors normalized to 0..1 range where 0 is no similarity and 1 is perfect similarity< / li >
< / ul >
< / div > < / div > < / 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 class = "tsd-anchor-link" > state< a href = "#state" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L73" > src/human.ts:73< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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 >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "tf" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > tf< a href = "#tf" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < div class = "tsd-signature tsd-kind-icon" > tf< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > any< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L82" > src/human.ts:82< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Instance of TensorFlow/JS used by Human< / p >
< ul >
< li > Can be embedded or externally provided
[TFJS API]: < a href = "https://js.tensorflow.org/api/latest/" class = "external" > https://js.tensorflow.org/api/latest/< / a > < / li >
< / ul >
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "version" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > version< a href = "#version" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L57" > src/human.ts:57< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Current version of Human library in < em > semver< / em > format< / p >
< / 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 = "analyze" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > analyze< a href = "#analyze" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > analyze< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > ...< / span > msg< 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 > < 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#L175" > src/human.ts:175< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > internal function to measure tensor leaks< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagRest" > Rest< / span > < span class = "tsd-signature-symbol" > ...< / span > msg: < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < / li > < / ul > < 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 = "compare" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > compare< a href = "#compare" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > compare< span class = "tsd-signature-symbol" > (< / span > firstImageTensor< span class = "tsd-signature-symbol" > : < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < span class = "tsd-signature-symbol" > > < / span > , secondImageTensor< span class = "tsd-signature-symbol" > : < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / 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" > number< / 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#L262" > src/human.ts:262< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Compare two input tensors for pixel simmilarity< / p >
< ul >
< li > use < code > human.image< / code > to process any valid input and get a tensor that can be used for compare< / li >
< li > when passing manually generated tensors:< / li >
< li > both input tensors must be in format [1, height, width, 3]< / li >
< li > if resolution of tensors does not match, second tensor will be resized to match resolution of the first tensor< / li >
< li > return value is pixel similarity score normalized by input resolution and rgb channels< / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > firstImageTensor: < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < li > < h5 > secondImageTensor: < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / 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" > number< / 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 = "detect" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > detect< a href = "#detect" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 = "../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#L372" > src/human.ts:372< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Main detection method< / p >
< ul >
< li > Analyze configuration: < a href = "../interfaces/Config.html" > Config< / a > < / li >
< li > Pre-process input: < a href = "../index.html#Input" > Input< / a > < / li >
< 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../index.html#Input" > Input< / a > < / p >
< / div > < / div > < / 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../interfaces/Config.html" > Config< / a > < / p >
< / div > < / div > < / 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 > < / h4 > < div > < p > result - < a href = "../interfaces/Result.html" > Result< / a > < / p >
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "emit" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > emit< a href = "#emit" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > emit< span class = "tsd-signature-symbol" > (< / span > event< 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 > < 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#L314" > src/human.ts:314< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > emit event< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > event: < span class = "tsd-signature-type" > string< / span > < / h5 > < / li > < / ul > < 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 = "enhance" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > enhance< a href = "#enhance" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / 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#L251" > src/human.ts:251< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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: < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Tensor as provided in human.result.face[n].tensor< / p >
< / div > < / div > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Tensor< / p >
< / 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 class = "tsd-anchor-link" > image< a href = "#image" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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-type" > Promise< / 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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#L227" > src/human.ts:227< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Process input as return canvas and tensor< / p >
< / 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > any input < a href = "../index.html#Input" > Input< / a > < / p >
< / div > < / div > < / li > < li > < h5 > getTensor: < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > = true< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > should image processing also return tensor or just canvas
Returns object with < code > tensor< / code > and < code > canvas< / code > < / p >
< / div > < / div > < / 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 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < 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 > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < span class = "tsd-signature-symbol" > > < / 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 = "init" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > init< a href = "#init" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L271" > src/human.ts:271< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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 >
< li > Use when changing backend during runtime< / li >
< / ul >
< / 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 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "load" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > load< a href = "#load" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L281" > src/human.ts:281< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../interfaces/Config.html" > Config< / a > < / p >
< / div > < / div > < / 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 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "next" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > next< a href = "#next" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L324" > src/human.ts:324< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../interfaces/Result.html" > Result< / a > optional use specific result set to run interpolation on< / p >
< / div > < / div > < / 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 >
< / 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 class = "tsd-anchor-link" > now< a href = "#now" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L217" > src/human.ts:217< / 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 = "profile" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > profile< a href = "#profile" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > profile< 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 > < 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 > < 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#L346" > src/human.ts:346< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Run detect with tensorflow profiling< / p >
< ul >
< li > result object will contain total exeuction time information for top-20 kernels< / li >
< li > actual detection object can be accessed via < code > human.result< / code > < / 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 > < 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 > < 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 = "reset" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > reset< a href = "#reset" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L198" > src/human.ts:198< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Reset configuration to default values< / p >
< / 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 class = "tsd-anchor-link" > segmentation< a href = "#segmentation" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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-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#L241" > src/human.ts:241< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Segmentation method takes any input and returns processed canvas with body segmentation< / p >
< ul >
< li > Segmentation is not triggered as part of detect process< / 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../index.html#Input" > Input< / a > < / p >
< / div > < / div > < / 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../index.html#Input" > Input< / a > < / p >
< ul >
< li > Optional parameter background is used to fill the background with specific input
Returns:< / li >
< li > < code > data< / code > as raw data array with per-pixel segmentation values< / li >
< 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 >
< li > < code > alpha< / code > as grayscale canvas that represents segmentation alpha values< / li >
< / ul >
< / div > < / div > < / 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < 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 > < a href = "../index.html#AnyCanvas" class = "tsd-signature-type" data-tsd-kind = "Type alias" > AnyCanvas< / a > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a href = "../enums/Rank.html" class = "tsd-signature-type" data-tsd-kind = "Enumeration" > Rank< / a > < 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-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 = "validate" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > validate< a href = "#validate" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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#L205" > src/human.ts:205< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > Validate current configuration schema< / p >
< / 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 class = "tsd-anchor-link" > warmup< a href = "#warmup" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg xmlns = "http://www.w3.org/2000/svg" class = "icon icon-tabler icon-tabler-link" viewBox = "0 0 24 24" stroke-width = "2" stroke = "currentColor" fill = "none" stroke-linecap = "round" stroke-linejoin = "round" > < path stroke = "none" d = "M0 0h24v24H0z" fill = "none" > < / path > < path d = "M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" > < / path > < path d = "M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" > < / path > < / svg > < / a > < / 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 > < span class = "tsd-signature-type" > undefined< / 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 > < / 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#L334" > src/human.ts:334< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< 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 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > < a href = "../interfaces/Config.html" > Config< / a > < / p >
< / div > < / div > < / 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" > undefined< / 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 > < / h4 > < div > < p > result - < a href = "../interfaces/Result.html" > Result< / a > < / p >
2022-04-01 18:38:05 +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 > < li class = " tsd-kind-namespace" > < a href = "../modules/Tensor.html" > Tensor< / a > < / li > < li class = " tsd-kind-namespace" > < a href = "../modules/draw.html" > draw< / a > < / li > < li class = " tsd-kind-namespace" > < a href = "../modules/match.html" > match< / a > < / li > < li class = " tsd-kind-namespace" > < a href = "../modules/models.html" > models< / 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#tf" class = "tsd-kind-icon" > tf< / 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#analyze" class = "tsd-kind-icon" > analyze< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#compare" class = "tsd-kind-icon" > compare< / 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#emit" class = "tsd-kind-icon" > emit< / 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#profile" class = "tsd-kind-icon" > profile< / 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-paren