5 #include <fsdk/Optional.h> 12 #ifndef DOXYGEN_SHOULD_SKIP_THIS 21 float africanAmerican;
120 EthnicityEstimation::Ethnicities
122 const float* arr = &this->africanAmerican;
123 return static_cast<EthnicityEstimation::Ethnicities
>(
124 std::distance(arr, std::max_element(arr, arr+EthnicityEstimation::Count))
133 EthnicityEstimation::Ethnicities ethnicity
135 return *(&this->africanAmerican +
static_cast<uint32_t
>(ethnicity));
147 static_cast<int>(first) | static_cast<int>(second)
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
SDK namespace.
Definition: IAGSEstimator.h:8
virtual Result< FSDKError > estimate(const Image &warp, const IAttributeEstimator::EstimationRequest request, IAttributeEstimator::EstimationResult &out) const noexcept=0
Estimate unified attributes.
Face image attribute estimator interface.
Definition: IAttributeEstimator.h:56
Common data types and structures.
Optional< float > gender
gender score if was requested (100% - male, 0% - female), empty otherwise
Definition: IAttributeEstimator.h:76
Estimate gender.
Definition: IAttributeEstimator.h:64
Unified Attribute Estimator output structure.
Definition: IAttributeEstimator.h:72
Object system types and interfaces.
Optional< float > age
< age estimation if was requested, empty otherwise
Definition: IAttributeEstimator.h:74
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Ethnicities getPredominantEthnicity() const
Returns ethnicity with greatest score.
Definition: IAttributeEstimator.h:121
EstimationRequest
EstimationRequest lists all possible estimation attributes that AttributeEstimator is currently able ...
Definition: IAttributeEstimator.h:62
float getEthnicityScore(Ethnicities ethnicity) const
Returns score of required ethnicity.
Definition: IAttributeEstimator.h:132
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Optional< float > genderScore
ethnicity estimation if was requested, empty otherwise
Definition: IAttributeEstimator.h:78
Make full estimation (all attributes)
Definition: IAttributeEstimator.h:66
Image.
Definition: Image.h:37
Ethnicity estimation structure. Each estimation is given in normalized [0, 1] range.
Definition: IAttributeEstimator.h:20
Estimate Ethnicity.
Definition: IAttributeEstimator.h:65
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
Estimate age.
Definition: IAttributeEstimator.h:63