added experimental face.rotation.gaze

master
Vladimir Mandic 2021-05-28 15:54:00 -04:00
parent e7c276c0f5
commit 30aee32aa1
1 changed files with 6 additions and 0 deletions

@ -40,6 +40,12 @@ result = {
pitch, // pitch is face move up/down, value of 0 means center pitch, // pitch is face move up/down, value of 0 means center
} }
matrix: [] // flat array of [3,3] that can be directly used for GL matrix rotations such as in Three.js matrix: [] // flat array of [3,3] that can be directly used for GL matrix rotations such as in Three.js
gaze:
{
angle, // direction of gaze in radians
// in range of right=0*pi up=1*pi/2 left=1*pi down=3*pi/2 which is 0 to 360 degrees
strength, // strength of a gaze at a direction of angle
},
} }
tensor: // if config.face.detector.return is set to true, detector will return tensor: // if config.face.detector.return is set to true, detector will return
// a raw tensor containing cropped image of a face // a raw tensor containing cropped image of a face