mirror of https://github.com/vladmandic/human
update gestures
parent
ddf8fb116b
commit
a137e535d3
|
@ -7,12 +7,15 @@ Entire implementation is in `src/gesture.js` and can be further extended with ad
|
||||||
There are three pre-defined methods:
|
There are three pre-defined methods:
|
||||||
|
|
||||||
- face(): implements:
|
- face(): implements:
|
||||||
- "*facing `<left|camera|right>`*"
|
- "*facing `<left|center|right>`*": if depth of left and right face border matches
|
||||||
- "*blink `<left|right>` eye*"
|
- "*blink `<left|right>` eye*"
|
||||||
- "*mouth `<percentage>` open*"
|
- "*mouth `<percentage>` open*"
|
||||||
- "*head `<up|down>`*"
|
- "*head `<up|down>`*"
|
||||||
- iris(): implements:
|
- iris(): implements:
|
||||||
- "*iris looking at camera*"
|
- "*facing center*": if iris area sizes matches
|
||||||
|
- "*looking <left|right>*": if iris center is far from eye outside corner
|
||||||
|
- "*looking <up|down>*": if iris center is far from eye bottom eyelid
|
||||||
|
- "*looking center*": if neither up/down and left/right
|
||||||
- body(): implements:
|
- body(): implements:
|
||||||
- "*leaning `<left|right>`*"
|
- "*leaning `<left|right>`*"
|
||||||
- "*raise `<left|right>` hand*"
|
- "*raise `<left|right>` hand*"
|
||||||
|
@ -26,7 +29,7 @@ Example output of `result.gesture`:
|
||||||
[
|
[
|
||||||
{face: "0", gesture: "facing camera"}
|
{face: "0", gesture: "facing camera"}
|
||||||
{face: "0", gesture: "head up"}
|
{face: "0", gesture: "head up"}
|
||||||
{iris: "0", gesture: "looking at camera"}
|
{iris: "0", gesture: "looking center"}
|
||||||
{body: "0", gesture: "i give up"}
|
{body: "0", gesture: "i give up"}
|
||||||
{body: "0", gesture: "leaning left"}
|
{body: "0", gesture: "leaning left"}
|
||||||
{hand: "0", gesture: "thumb forward middlefinger up"}
|
{hand: "0", gesture: "thumb forward middlefinger up"}
|
||||||
|
|
Loading…
Reference in New Issue