update gesture docs

master
Vladimir Mandic 2020-11-23 23:35:47 -05:00
parent 333457d935
commit bcac4981f7
2 changed files with 19 additions and 6 deletions

@ -17,3 +17,15 @@ There are three pre-defined methods:
- "*i give up*" - "*i give up*"
- hand(): implements: - hand(): implements:
- "*`<finger>` forward `<finger>` up*" - "*`<finger>` forward `<finger>` up*"
Example output of `result.gesture`:
```js
[
{face: "0", gesture: "facing camera"}
{face: "0", gesture: "head down"}
{body: "0", gesture: "i give up"}
{body: "0", gesture: "leaning left"}
{hand: "0", gesture: "thumb forward middlefinger up"}
]
```
Where number after gesture refers to number of person that detection belongs to in scenes with multiple people.

@ -41,12 +41,13 @@ result = {
emotion, // <string> 'angry', 'discust', 'fear', 'happy', 'sad', 'surpise', 'neutral' emotion, // <string> 'angry', 'discust', 'fear', 'happy', 'sad', 'surpise', 'neutral'
} }
], ],
gesture: // object containing parsed gestures gesture: // <array of objects object>
{ [
face, // <array of string> {
body, // <array of string> <gesture-type>: <person-number>,
hand, // <array of string> gesture: <gesture-string>
} }
],
performance = { // performance data of last execution for each module measuredin miliseconds performance = { // performance data of last execution for each module measuredin miliseconds
// note that per-model performance data is not available in async execution mode // note that per-model performance data is not available in async execution mode
backend, // time to initialize tf backend, keeps longest value measured backend, // time to initialize tf backend, keeps longest value measured