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

Interface object for age and gender estimation. More...

#include <AgeGenderEstimator.h>

Classes

struct  AgeGender
 Age and gender. More...
 

Public Types

enum  Age { AGE_KID = 0, AGE_YOUNG = 1, AGE_ADULT = 2, AGE_SENIOR = 3 }
 Age groups. More...
 
enum  Gender { GENDER_FEMALE = 0, GENDER_MALE = 1 }
 Gender groups. More...
 
typedef LightSmartPtr
< AgeGenderEstimator >::tPtr 
Ptr
 Alias for the type of a smart pointer to AgeGenderEstimator.
 

Public Member Functions

AgeGender estimateAgeGender (const pbio::RawSample &sample) const
 To estimate age and gender of a given face sample. More...
 

Detailed Description

Interface object for age and gender estimation.

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

Member Enumeration Documentation

Age groups.

Enumerator
AGE_KID 

Age in the range of [0; 18) years.

AGE_YOUNG 

Age in the range of [18; 37) years.

AGE_ADULT 

Age in the range of [37; 55) years.

AGE_SENIOR 

Age in the range of [55; inf) years.

Gender groups.

Enumerator
GENDER_FEMALE 

Female.

GENDER_MALE 

Male.

Member Function Documentation

AgeGenderEstimator::AgeGender pbio::AgeGenderEstimator::estimateAgeGender ( const pbio::RawSample sample) const
inline

To estimate age and gender of a given face sample.

Parameters
[in]sampleFace sample.
Returns
Estimated age and gender.