3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
pbio::EmotionsEstimator Class Reference

Interface object for estimation of emotions. More...

#include <EmotionsEstimator.h>

Classes

struct  EmotionConfidence
 Emotion with confidence. More...
 

Public Types

enum  Emotion {
  EMOTION_NEUTRAL = 0, EMOTION_HAPPY = 1, EMOTION_ANGRY = 2, EMOTION_SURPRISE = 3,
  EMOTION_DISGUSTED = 4, EMOTION_SCARED = 5, EMOTION_SAD = 6
}
 Emotions. More...
 
typedef LightSmartPtr
< EmotionsEstimator >::tPtr 
Ptr
 Alias for the type of a smart pointer to EmotionsEstimator.
 
typedef std::vector
< EmotionConfidence
EstimatedEmotionsVector
 Vector of estimated emotions with confidence coefficients. In descending confidence order. The sum of all confidence coefficients equals 1.
 

Public Member Functions

EstimatedEmotionsVector estimateEmotions (const pbio::RawSample &sample) const
 Estimates the emotion of a given face sample. More...
 

Detailed Description

Interface object for estimation of emotions.

Warning
This is a deprecated version (see the new one in Processing Block API). It's support will end in 2024.

Member Enumeration Documentation

Emotions.

Enumerator
EMOTION_NEUTRAL 

Neutral.

EMOTION_HAPPY 

Happy.

EMOTION_ANGRY 

Angry.

EMOTION_SURPRISE 

Surprised.

EMOTION_DISGUSTED 

Disgusted.

EMOTION_SCARED 

Scared.

EMOTION_SAD 

Sad.

Member Function Documentation

std::vector< EmotionsEstimator::EmotionConfidence > pbio::EmotionsEstimator::estimateEmotions ( const pbio::RawSample sample) const
inline

Estimates the emotion of a given face sample.

Parameters
[in]sampleFace sample.
Returns
Vector of estimated emotions with confidence coefficients. In descending confidence order. The sum of all confidence coefficients equals 1.