2021-10-19 17:28:59 +02:00
<!DOCTYPE html> < html class = "default no-js" > < head > < meta charSet = "utf-8" / > < meta http-equiv = "x-ua-compatible" content = "IE=edge" / > < title > FaceConfig | @vladmandic/human - v2.3.5< / title > < meta name = "description" content = "Documentation for @vladmandic/human - v2.3.5" / > < meta name = "viewport" content = "width=device-width, initial-scale=1" / > < link rel = "stylesheet" href = "../assets/style.css" / > < link rel = "stylesheet" href = "../assets/highlight.css" / > < script async src = "../assets/search.js" id = "search-script" > < / script > < / head > < body > < script > document . body . classList . add ( localStorage . getItem ( & quot ; tsd - theme & quot ; ) || & quot ; os & quot ; ) < / script > < header > < div class = "tsd-page-toolbar" > < div class = "container" > < div class = "table-wrap" > < div class = "table-cell" id = "tsd-search" data-base = ".." > < div class = "field" > < label for = "tsd-search-field" class = "tsd-widget search no-caption" > Search< / label > < input type = "text" id = "tsd-search-field" / > < / div > < ul class = "results" > < li class = "state loading" > Preparing search index...< / li > < li class = "state failure" > The search index is not available< / li > < / ul > < a href = "../index.html" class = "title" > @vladmandic/human - v2.3.5< / a > < / div > < div class = "table-cell" id = "tsd-widgets" > < div id = "tsd-filter" > < a href = "#" class = "tsd-widget options no-caption" data-toggle = "options" > Options< / a > < div class = "tsd-filter-group" > < div class = "tsd-select" id = "tsd-filter-visibility" > < span class = "tsd-select-label" > All< / span > < ul class = "tsd-select-list" > < li data-value = "public" > Public< / li > < li data-value = "protected" > Public/Protected< / li > < li data-value = "private" class = "selected" > All< / li > < / ul > < / div > < input type = "checkbox" id = "tsd-filter-inherited" checked / > < label class = "tsd-widget" for = "tsd-filter-inherited" > Inherited< / label > < / div > < / div > < a href = "#" class = "tsd-widget menu no-caption" data-toggle = "menu" > Menu< / a > < / div > < / div > < / div > < / div > < div class = "tsd-page-title" > < div class = "container" > < ul class = "tsd-breadcrumb" > < li > < a href = "../index.html" > @vladmandic/human - v2.3.5< / a > < / li > < li > < a href = "FaceConfig.html" > FaceConfig< / a > < / li > < / ul > < h1 > Interface FaceConfig< / 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 > Controlls and configures all face-specific options:< / p >
< ul >
2021-09-22 22:00:43 +02:00
< li > face detection, face mesh detection, age, gender, emotion detection and face description< / li >
< / ul >
< / div > < div > < p > Parameters:< / p >
< ul >
2021-09-19 01:09:02 +02:00
< li > enabled: true/false< / li >
< li > modelPath: path for each of face models< / li >
< li > minConfidence: threshold for discarding a prediction< / li >
< li > iouThreshold: ammount of overlap between two detected objects before one object is removed< / li >
< li > maxDetected: maximum number of faces detected in the input, should be set to the minimum number for performance< / li >
< li > rotation: use calculated rotated face image or just box with rotation as-is, false means higher performance, but incorrect mesh mapping on higher face angles< / li >
< li > return: return extracted face as tensor for futher user processing, in which case user is reponsible for manually disposing the tensor< / li >
< / ul >
2021-10-19 13:58:51 +02:00
< / div > < / div > < / section > < section class = "tsd-panel tsd-hierarchy" > < h3 > Hierarchy< / h3 > < ul class = "tsd-hierarchy" > < li > < span class = "target" > FaceConfig< / 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 > Properties< / h3 > < ul class = "tsd-index-list" > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#antispoof" class = "tsd-kind-icon" > antispoof< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#description" class = "tsd-kind-icon" > description< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#detector" class = "tsd-kind-icon" > detector< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#emotion" class = "tsd-kind-icon" > emotion< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#enabled" class = "tsd-kind-icon" > enabled< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#iris" class = "tsd-kind-icon" > iris< / a > < / li > < li class = "tsd-kind-property tsd-parent-kind-interface" > < a href = "FaceConfig.html#mesh" class = "tsd-kind-icon" > mesh< / a > < / li > < / ul > < / section > < / div > < / 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-interface" > < a id = "antispoof" class = "tsd-anchor" > < / a > < h3 > antispoof< / h3 > < div class = "tsd-signature tsd-kind-icon" > antispoof< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "FaceAntiSpoofConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceAntiSpoofConfig< / a > < 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/config.ts#L71" > config.ts:71< / a > < / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface" > < a id = "description" class = "tsd-anchor" > < / a > < h3 > description< / h3 > < div class = "tsd-signature tsd-kind-icon" > description< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "FaceDescriptionConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceDescriptionConfig< / a > < 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/config.ts#L69" > config.ts:69< / a > < / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface" > < a id = "detector" class = "tsd-anchor" > < / a > < h3 > detector< / h3 > < div class = "tsd-signature tsd-kind-icon" > detector< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "FaceDetectorConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceDetectorConfig< / a > < 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/config.ts#L66" > config.ts:66< / a > < / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface" > < a id = "emotion" class = "tsd-anchor" > < / a > < h3 > emotion< / h3 > < div class = "tsd-signature tsd-kind-icon" > emotion< span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Partial< / span > < span class = "tsd-signature-symbol" > < < / span > < a href = "FaceEmotionConfig.html" class = "tsd-signature-type" data-tsd-kind = "Interface" > FaceEmotionConfig< / a > < 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/config.ts#L70" > config.ts:70< / a > < / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface" > <