DeepAR iOS  v5.2.0
Public Attributes | List of all members
FaceData Struct Reference

Represents data structure containing all the information available about the detected face. More...

#include <DeepAR.h>

Public Attributes

BOOL detected
 Determines whether the face is detected or not.
 
float translation [3]
 The X, Y and Z translation values of the face in the scene.
 
float rotation [3]
 The pitch, yaw and roll rotation values in euler angles (degrees) of the face in the scene.
 
float poseMatrix [16]
 Translation and rotation in matrix form (D3D style, column-major order).
 
float landmarks [68 *3]
 Detected face feature points in 3D space (X, Y, Z). Read more here.
 
float landmarks2d [68 *3]
 Detected face feature points in 2D screen space coordinates (X, Y). More...
 
float faceRect [4]
 A rectangle containing the face in screen coordinates (X, Y, Width, Height).
 
float emotions [5]
 Estimated emotions for the face. More...
 
float actionUnits [63]
 The array of action units.
 
int numberOfActionUnits
 The number of action units.
 

Detailed Description

Represents data structure containing all the information available about the detected face.

Member Data Documentation

◆ emotions

float FaceData::emotions[5]

Estimated emotions for the face.

Each emotion has a value in [0.0, 1.0] range. The 1.0 value means 100% detected emotion.

We differentiate 5 different emotions:

  • Index 0 is neutral
  • Index 1 is happiness
  • Index 2 is surprise
  • Index 3 is sadness
  • Index 4 is anger

◆ landmarks2d

float FaceData::landmarks2d[68 *3]

Detected face feature points in 2D screen space coordinates (X, Y).

Usually more precise than 3D points but no estimation for Z translation. Read more here about feature points here.


The documentation for this struct was generated from the following file: