2021-11-08 13:36:26 +01: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.5.1< / title > < meta name = "description" content = "Documentation for @vladmandic/human - v2.5.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.5.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.5.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" >
2021-09-19 01:09:02 +02:00
< p > < em > Human< / em > * library main class< / p >
< / div > < div > < p > All methods and properties are available only as members of Human class< / p >
< ul >
< li > Configuration object definition: < a href = "../interfaces/Config.html" > Config< / a > < / li >
< li > Results object definition: < a href = "../interfaces/Result.html" > Result< / a > < / li >
< li > Possible inputs: < a href = "../index.html#Input" > Input< / a > < / li >
< / ul >
< / div > < dl class = "tsd-comment-tags" > < dt > param userConfig:< / dt > < dd > < p > < a href = "../interfaces/Config.html" > Config< / a > < / p >
2021-10-25 19:09:00 +02:00
< / dd > < dt > returns< / dt > < dd > < p > instance of < a href = "Human.html" > Human< / a > < / p >
2021-11-07 16:03:33 +01:00
< / dd > < / dl > < / div > < / section > < section class = "tsd-panel tsd-hierarchy" > < h3 > Hierarchy< / h3 > < ul class = "tsd-hierarchy" > < li > < span class = "target" > Human< / span > < / li > < / ul > < / section > < section class = "tsd-panel-group tsd-index-group" > < h2 > Index< / h2 > < section class = "tsd-panel tsd-index-panel" > < div class = "tsd-index-content" > < section class = "tsd-index-section " > < h3 > Constructors< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < a href = "Human.html#constructor" class = "tsd-kind-icon" > constructor< / a > < / li > < / ul > < / section > < section class = "tsd-index-section " > < h3 > Properties< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#config" class = "tsd-kind-icon" > config< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#distance" class = "tsd-kind-icon" > distance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#draw" class = "tsd-kind-icon" > draw< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#env" class = "tsd-kind-icon" > env< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#events" class = "tsd-kind-icon" > events< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceTriangulation" class = "tsd-kind-icon" > face< wbr / > Triangulation< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceUVMap" class = "tsd-kind-icon" > faceUVMap< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#gl" class = "tsd-kind-icon" > gl< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#match" class = "tsd-kind-icon" > match< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#performance" class = "tsd-kind-icon" > performance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#process" class = "tsd-kind-icon" > process< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#result" class = "tsd-kind-icon" > result< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#similarity" class = "tsd-kind-icon" > similarity< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#state" class = "tsd-kind-icon" > state< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#version" class = "tsd-kind-icon" > version< / a > < / li > < / ul > < / section > < section class = "tsd-index-section " > < h3 > Methods< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#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#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 > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#validate" class = "tsd-kind-icon" > validate< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#warmup" class = "tsd-kind-icon" > warmup< / a > < / li > < / ul > < / section > < / div > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > C
2021-09-19 01:09:02 +02:00
< p > Constructor for < strong > Human< / strong > library that is futher used for all operations< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < a href = "Human.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Human< / a > < / h4 > < div > < / div > < / li > < / ul > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > Properties< / h2 > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "config" class = "tsd-anchor" > < / a > < h3 > config< / h3 > < div class = "tsd-signature tsd-kind-icon" > config< span class = "tsd-signature-symbol" > :< / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L73" > src/human.ts:73< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current configuration< / p >
< ul >
2021-11-08 13:36:26 +01:00
< li > Defaults: < a href = "https://github.com/vladmandic/human/blob/main/src/config.ts#L262" > config< / a > < / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "distance" class = "tsd-anchor" > < / a > < h3 > distance< / h3 > < div class = "tsd-signature tsd-kind-icon" > distance< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > = match.distance< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L225" > src/human.ts:225< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-30 20:28:16 +02:00
< p > Calculates distance between two descriptors< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < div > < / div > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "draw" class = "tsd-anchor" > < / a > < h3 > draw< / h3 > < div class = "tsd-signature tsd-kind-icon" > draw< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > { < / span > all< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-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" > HTMLMediaElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < span cla
2021-09-19 01:09:02 +02:00
< p > Draw helper classes that can draw detected objects on canvas using specified draw< / p >
2021-10-25 19:09:00 +02:00
< / div > < dl class = "tsd-comment-tags" > < dt > property< / dt > < dd > < p > options global settings for all draw operations, can be overriden for each draw method < a href = "../index.html#DrawOptions" > DrawOptions< / a > < / p >
< / dd > < / dl > < / 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" >
< p > meta-function that performs draw for: canvas, face, body, hand< / p >
< / 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 > < div > < / div > < / 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" >
< p > draw detected bodies< / p >
< / 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" > HTMLMediaElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / 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 > 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" > HTMLMediaElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > , output< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / 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" >
< p > draw processed canvas< / p >
< / 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" > HTMLMediaElement< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLVideoElement< / span > < / h5 > < / li > < li > < h5 > output: < span class = "tsd-signature-type" > HTMLCanvasElement< / 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 > 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" >
< p > draw detected faces< / p >
< / 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" >
< p > draw detected gestures< / p >
< / 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" >
< p > draw detected hands< / p >
< / 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" >
< p > draw detected objects< / p >
< / 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" >
< p > draw combined person results instead of individual detection result objects< / p >
2021-10-27 15:45:38 +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 > env< / 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#L98" > src/human.ts:98< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Object containing environment information used for diagnostics< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "events" class = "tsd-anchor" > < / a > < h3 > events< / h3 > < div class = "tsd-signature tsd-kind-icon" > events< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > undefined< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > EventTarget< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L121" > src/human.ts:121< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-10-25 19:09:00 +02:00
< p > Container for events dispatched by Human
{@type} EventTarget
Possible events:< / p >
2021-09-19 01:09:02 +02:00
< ul >
< li > < code > create< / code > : triggered when Human object is instantiated< / li >
< li > < code > load< / code > : triggered when models are loaded (explicitly or on-demand)< / li >
2021-09-22 21:16:14 +02:00
< li > < code > image< / code > : triggered when input image is processed< / li >
2021-09-19 01:09:02 +02:00
< li > < code > result< / code > : triggered when detection is complete< / li >
< li > < code > warmup< / code > : triggered when warmup is complete< / li >
< li > < code > error< / code > : triggered on some errors< / li >
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceTriangulation" class = "tsd-anchor" > < / a > < h3 > face< wbr / > Triangulation< / h3 > < div class = "tsd-signature tsd-kind-icon" > face< wbr / > Triangulation< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L123" > src/human.ts:123< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Reference face triangualtion array of 468 points, used for triangle references between points< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "faceUVMap" class = "tsd-anchor" > < / a > < h3 > faceUVMap< / h3 > < div class = "tsd-signature tsd-kind-icon" > faceUVMap< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > [< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > []< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L125" > src/human.ts:125< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Refernce UV map of 468 values, used for 3D mapping of the face mesh< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "gl" class = "tsd-anchor" > < / a > < h3 > gl< / h3 > < div class = "tsd-signature tsd-kind-icon" > gl< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Record< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > unknown< / span > < span class = "tsd-signature-symbol" > > < / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L132" > src/human.ts:132< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > WebGL debug info< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "match" class = "tsd-anchor" > < / a > < h3 > match< / h3 > < div class = "tsd-signature tsd-kind-icon" > match< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > = match.match< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L226" > src/human.ts:226< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptors< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-30 20:28:16 +02:00
< p > Matches given descriptor to a closest entry in array of descriptors< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > face descriptor< / p >
< / div > < / div > < / li > < li > < h5 > descriptors: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < span class = "tsd-signature-symbol" > []< / span > < / h5 > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
< p > array of face descriptors to commpare given descriptor to< / p >
2021-10-26 21:08:05 +02:00
< / div > < / div > < / li > < li > < h5 > options: < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ; < / span > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > }< / span > < / h4 > < div > < ul >
2021-09-30 20:28:16 +02:00
< li > < code > index< / code > index array index where best match was found or -1 if no matches< / li >
< li > < a href = "Human.html#distance" > distance< / a > calculated < code > distance< / code > of given descriptor to the best match< / li >
< li > < a href = "Human.html#similarity" > similarity< / a > calculated normalized < code > similarity< / code > of given descriptor to the best match< / li >
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > distance< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > index< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > similarity< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / h5 > < / li > < / ul > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "performance" class = "tsd-anchor" > < / a > < h3 > performance< / h3 > < div class = "tsd-signature tsd-kind-icon" > performance< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Record< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > , < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > > < / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L127" > src/human.ts:127< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Performance object that contains values for all recently performed operations< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "process" class = "tsd-anchor" > < / a > < h3 > process< / h3 > < div class = "tsd-signature tsd-kind-icon" > process< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > { < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L87" > src/human.ts:87< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > currenty processed image tensor and canvas< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter" > < h5 > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < / h5 > < / li > < li class = "tsd-parameter" > < h5 > tensor< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "result" class = "tsd-anchor" > < / a > < h3 > result< / h3 > < div class = "tsd-signature tsd-kind-icon" > result< span class = "tsd-signature-symbol" > :< / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L78" > src/human.ts:78< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Last known result of detect run< / p >
< ul >
< li > Can be accessed anytime after initial detection< / li >
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "similarity" class = "tsd-anchor" > < / a > < h3 > similarity< / h3 > < div class = "tsd-signature tsd-kind-icon" > similarity< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > => < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > = match.similarity< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L224" > src/human.ts:224< / a > < / li > < / ul > < / aside > < div class = "tsd-type-declaration" > < h4 > Type declaration< / h4 > < ul class = "tsd-parameters" > < li class = "tsd-parameter-signature" > < ul class = "tsd-signatures tsd-kind-type-literal tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > < span class = "tsd-signature-symbol" > (< / span > descriptor1< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , descriptor2< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > , options< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-10-25 19:09:00 +02:00
< p > Calculates normalized similarity between two face descriptors based on their < code > distance< / code > < / p >
2021-10-26 21:08:05 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > descriptor1: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > descriptor2: < a href = "../index.html#Descriptor" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Descriptor< / a > < / h5 > < / li > < li > < h5 > options: < span class = "tsd-signature-type" > Options< / span > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < div > < p > similarity between two face descriptors normalized to 0..1 range where 0 is no similarity and 1 is perfect similarity< / p >
2021-10-27 15:45:38 +02:00
< / div > < / li > < / ul > < / li > < / ul > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "state" class = "tsd-anchor" > < / a > < h3 > state< / h3 > < div class = "tsd-signature tsd-kind-icon" > state< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L84" > src/human.ts:84< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current state of Human library< / p >
< ul >
< li > Can be polled to determine operations that are currently executed< / li >
< li > Progresses through: ' config' , ' check' , ' backend' , ' load' , ' run:< model > ' , ' idle' < / li >
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class" > < a id = "version" class = "tsd-anchor" > < / a > < h3 > version< / h3 > < div class = "tsd-signature tsd-kind-icon" > version< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L68" > src/human.ts:68< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Current version of Human library in < em > semver< / em > format< / p >
2021-11-07 16:03:33 +01:00
< / div > < / div > < / section > < / section > < section class = "tsd-panel-group tsd-member-group " > < h2 > Methods< / h2 > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "compare" class = "tsd-anchor" > < / a > < h3 > compare< / 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 > < span class = "tsd-signature-type" > Rank< / span > < 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 > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > 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#L278" > src/human.ts:278< / 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 >
< / 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 > < span class = "tsd-signature-type" > Rank< / span > < 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 > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < ul >
< li > return value is pixel similarity score normalized by input resolution and rgb channels< / li >
< / ul >
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "detect" class = "tsd-anchor" > < / a > < h3 > detect< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > detect< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#Error" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Error< / a > < span class = "tsd-signature-symbol" > | < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L392" > src/human.ts:392< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Main detection method< / p >
< ul >
< li > Analyze configuration: < a href = "../interfaces/Config.html" > Config< / a > < / li >
2021-09-22 21:16:14 +02:00
< li > Pre-process input: < a href = "../index.html#Input" > Input< / a > < / li >
2021-09-19 01:09:02 +02:00
< li > Run inference for all configured models< / li >
< li > Process and return result: < a href = "../interfaces/Result.html" > Result< / a > < / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../index.html#Error" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Error< / a > < span class = "tsd-signature-symbol" > | < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-10-27 15:45:38 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "enhance" class = "tsd-anchor" > < / a > < h3 > enhance< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > enhance< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L266" > src/human.ts:266< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Enhance method performs additional enhacements to face image previously detected for futher processing< / p >
2021-10-25 19:09:00 +02:00
< / 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 > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < a href = "Tensor.html" class = "tsd-signature-type" data-tsd-kind = "Class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Tensor< / p >
2021-11-06 15:21:51 +01:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "image" class = "tsd-anchor" > < / a > < h3 > image< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > image< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , getTensor< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-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 > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / 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#L239" > src/human.ts:239< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Process input as return canvas and tensor< / p >
2021-11-07 16:03:33 +01:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > getTensor: < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > = true< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-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 > < span class = "tsd-signature-type" > Rank< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "init" class = "tsd-anchor" > < / a > < h3 > init< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > init< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L289" > src/human.ts:289< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Explicit backend initialization< / p >
< ul >
< li > Normally done implicitly during initial load phase< / li >
< li > Call to explictly register and initialize TFJS backend without any other operations< / li >
2021-09-21 04:06:49 +02:00
< li > Use when changing backend during runtime< / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-11-07 16:03:33 +01:00
< / div > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "load" class = "tsd-anchor" > < / a > < h3 > load< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > load< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L300" > src/human.ts:300< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Load method preloads all configured models on-demand< / p >
< ul >
< li > Not explicitly required as any required model is load implicitly on it' s first run< / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > void< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > Promise< void > < / p >
2021-11-07 16:03:33 +01:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "next" class = "tsd-anchor" > < / a > < h3 > next< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > next< span class = "tsd-signature-symbol" > (< / span > result< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L344" > src/human.ts:344< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Runs interpolation using last known result and returns smoothened result
Interpolation is based on time since last known result so can be called independently< / p >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > result: < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > = ...< / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-10-27 15:45:38 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "now" class = "tsd-anchor" > < / a > < h3 > now< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > now< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L229" > src/human.ts:229< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-10-19 17:28:59 +02:00
< p > Utility wrapper for performance.now()< / p >
2021-11-07 16:03:33 +01:00
< / 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 > profile< / 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#L366" > src/human.ts:366< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-11-05 20:35:53 +01:00
< 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 > reset< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > reset< span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > void< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L212" > src/human.ts:212< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 20:07:53 +02:00
< p > Reset configuration to default values< / p >
2021-10-27 15:45:38 +02:00
< / div > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "segmentation" class = "tsd-anchor" > < / a > < h3 > segmentation< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > segmentation< span class = "tsd-signature-symbol" > (< / span > input< span class = "tsd-signature-symbol" > : < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > , background< span class = "tsd-signature-symbol" > ?: < / span > < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-symbol" > { < / span > alpha< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L256" > src/human.ts:256< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-22 21:16:14 +02:00
< p > Segmentation method takes any input and returns processed canvas with body segmentation< / p >
2021-09-19 01:09:02 +02:00
< ul >
2021-09-22 21:16:14 +02:00
< li > Segmentation is not triggered as part of detect process< / li >
2021-09-19 01:09:02 +02:00
< / ul >
2021-09-22 21:16:14 +02:00
< / div > < div > < p > Returns:< / p >
2021-10-25 19:09:00 +02:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > input: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > background: < a href = "../index.html#Input" class = "tsd-signature-type" data-tsd-kind = "Type alias" > Input< / a > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-symbol" > { < / span > alpha< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > canvas< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > null< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > OffscreenCanvas< / span > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-type" > HTMLCanvasElement< / span > < span class = "tsd-signature-symbol" > ; < / span > data< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < ul >
2021-09-22 21:16:14 +02:00
< li > < code > data< / code > as raw data array with per-pixel segmentation values< / li >
2021-09-22 22:00:43 +02:00
< li > < code > canvas< / code > as canvas which is input image filtered with segementation data and optionally merged with background image. canvas alpha values are set to segmentation values for easy merging< / li >
2021-09-22 21:16:14 +02:00
< li > < code > alpha< / code > as grayscale canvas that represents segmentation alpha values< / li >
< / ul >
2021-10-27 15:45:38 +02:00
< / div > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "validate" class = "tsd-anchor" > < / a > < h3 > validate< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > validate< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-symbol" > { < / span > expected< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > reason< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > where< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > []< / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L219" > src/human.ts:219< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 20:07:53 +02:00
< p > Validate current configuration schema< / p >
2021-11-07 16:03:33 +01:00
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-symbol" > { < / span > expected< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > reason< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ; < / span > where< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > []< / span > < / h4 > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class" > < a id = "warmup" class = "tsd-anchor" > < / a > < h3 > warmup< / h3 > < ul class = "tsd-signatures tsd-kind-method tsd-parent-kind-class" > < li class = "tsd-signature tsd-kind-icon" > warmup< span class = "tsd-signature-symbol" > (< / span > userConfig< span class = "tsd-signature-symbol" > ?: < / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > { < / span > error< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / li > < / ul > < ul class = "tsd-descriptions" > < li class = "tsd-description" > < aside class = "tsd-sources" > < ul > < li > Defined in < a href = "https://github.com/vladmandic/human/blob/main/src/human.ts#L354" > src/human.ts:354< / a > < / li > < / ul > < / aside > < div class = "tsd-comment tsd-typography" > < div class = "lead" >
2021-09-19 01:09:02 +02:00
< p > Warmup method pre-initializes all configured models for faster inference< / p >
< ul >
< li > can take significant time on startup< / li >
< li > only used for < code > webgl< / code > and < code > humangl< / code > backends< / li >
< / ul >
< / div > < / div > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameters" > < li > < h5 > < span class = "tsd-flag ts-flagOptional" > Optional< / span > userConfig: < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Config.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Config< / a > < span class = "tsd-signature-symbol" > > < / span > < / h5 > < / li > < / ul > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "../interfaces/Result.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > Result< / a > < span class = "tsd-signature-symbol" > | < / span > < span class = "tsd-signature-symbol" > { < / span > error< span class = "tsd-signature-symbol" > : < / span > < span class = "tsd-signature-type" > any< / span > < span class = "tsd-signature-symbol" > }< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div > < p > result: < a href = "../interfaces/Result.html" > Result< / a > < / p >
2021-11-07 16:03:33 +01: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 > < / ul > < / nav > < nav class = "tsd-navigation secondary menu-sticky" > < ul > < li class = "current tsd-kind-class" > < a href = "Human.html" class = "tsd-kind-icon" > Human< / a > < ul > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < a href = "Human.html#constructor" class = "tsd-kind-icon" > constructor< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#config" class = "tsd-kind-icon" > config< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#distance" class = "tsd-kind-icon" > distance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#draw" class = "tsd-kind-icon" > draw< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#env" class = "tsd-kind-icon" > env< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#events" class = "tsd-kind-icon" > events< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceTriangulation" class = "tsd-kind-icon" > face< wbr / > Triangulation< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#faceUVMap" class = "tsd-kind-icon" > faceUVMap< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#gl" class = "tsd-kind-icon" > gl< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#match" class = "tsd-kind-icon" > match< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#performance" class = "tsd-kind-icon" > performance< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#process" class = "tsd-kind-icon" > process< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#result" class = "tsd-kind-icon" > result< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#similarity" class = "tsd-kind-icon" > similarity< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#state" class = "tsd-kind-icon" > state< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-class" > < a href = "Human.html#version" class = "tsd-kind-icon" > version< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#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#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 > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#validate" class = "tsd-kind-icon" > validate< / a > < / li > < li class = "tsd-kind-method tsd-parent-kind-class" > < a href = "Human.html#warmup" class = "tsd-kind-icon" > warmup< / a > < / li > < / ul > < / li > < / ul > < / nav > < / div > < / div > < / div > < footer class = "" > < div class = "container" > < h2 > Legend< / h2 > < div class = "tsd-legend-group" > < ul class = "tsd-legend" > < li class = "tsd-kind-constructor tsd-parent-kind-class" > < span class = "tsd-kind-icon" > Constructor< /spa