5 #include <fsdk/Optional.h>
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77 EmotionsEstimation::Emotions
79 const float* arr = &this->
anger;
80 return static_cast<EmotionsEstimation::Emotions
>(
81 std::distance(arr, std::max_element(arr, arr+EmotionsEstimation::Count))
89 return *(&this->
anger +
static_cast<uint32_t
>(emotion));
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
float surprise
0(not surprised)..1(surprised);
Definition: IEmotionsEstimator.h:27
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
Emotions getPredominantEmotion() const
Returns emotion with greatest score.
Definition: IEmotionsEstimator.h:78
Object system types and interfaces.
virtual Result< FSDKError > estimate(const Image &warp, EmotionsEstimation &estimation) const noexcept=0
Estimate the attributes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Emotions estimator interface.
Definition: IEmotionsEstimator.h:60
float getEmotionScore(Emotions emotion) const
Returns score of required emotion.
Definition: IEmotionsEstimator.h:88
float anger
0(not angry)..1(angry);
Definition: IEmotionsEstimator.h:22
float sadness
0(not sad)..1(sad);
Definition: IEmotionsEstimator.h:26
float neutral
0(not neutral)..1(neutral).
Definition: IEmotionsEstimator.h:28
Image.
Definition: Image.h:37
float happiness
0(not happy)..1(happy);
Definition: IEmotionsEstimator.h:25
Emotions estimation structure. Each estimation is given in normalized [0, 1] range.
Definition: IEmotionsEstimator.h:20
float fear
0(no fear)..1(fear);
Definition: IEmotionsEstimator.h:24
float disgust
0(not disgusted)..1(disgusted);
Definition: IEmotionsEstimator.h:23