From bcac4981f7df29e367259caf6b3b73e5ecde6519 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Mon, 23 Nov 2020 23:35:47 -0500 Subject: [PATCH] update gesture docs --- Gesture.md | 12 ++++++++++++ Outputs.md | 13 +++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Gesture.md b/Gesture.md index eb58af0..3eb50a8 100644 --- a/Gesture.md +++ b/Gesture.md @@ -17,3 +17,15 @@ There are three pre-defined methods: - "*i give up*" - hand(): implements: - "*`` forward `` 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. diff --git a/Outputs.md b/Outputs.md index 1f2eace..b20acf4 100644 --- a/Outputs.md +++ b/Outputs.md @@ -41,12 +41,13 @@ result = { emotion, // 'angry', 'discust', 'fear', 'happy', 'sad', 'surpise', 'neutral' } ], - gesture: // object containing parsed gestures - { - face, // - body, // - hand, // - } + gesture: // + [ + { + : , + gesture: + } + ], performance = { // performance data of last execution for each module measuredin miliseconds // note that per-model performance data is not available in async execution mode backend, // time to initialize tf backend, keeps longest value measured