5 #include <fsdk/Optional.h>
7 #include <fsdk/Types/Image.h>
8 #include <fsdk/Types/Result.h>
9 #include <fsdk/Types/Span.h>
13 #ifndef DOXYGEN_SHOULD_SKIP_THIS
70 float scores[
static_cast<int>(Color::Count)];
103 float scores[
static_cast<int>(ApparentColor::Count)];
287 const Image& humanWarp,
362 case Color::Multicolored:
363 return scores[
static_cast<int>(color)];
375 case ApparentColor::Black:
376 case ApparentColor::White:
377 case ApparentColor::Other:
378 case ApparentColor::Unknown:
379 return scores[
static_cast<int>(color)];
392 static_cast<int>(lhs) | static_cast<int>(rhs));
399 return static_cast<int>(lhs) & static_cast<int>(rhs);
bool isBlack
attribute is black
Definition: IHumanAttributeEstimator.h:99
bool isKhaki
outwear is khaki
Definition: IHumanAttributeEstimator.h:68
float backpack
backpack probability score
Definition: IHumanAttributeEstimator.h:203
float shorts
shorts probability score
Definition: IHumanAttributeEstimator.h:227
bool isOrange
outwear is orange
Definition: IHumanAttributeEstimator.h:60
Optional< HatEstimation > headwear
headwear estimation (
Definition: IHumanAttributeEstimator.h:247
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Optional< BackpackEstimation > backpack
backpack estimation (
Definition: IHumanAttributeEstimator.h:248
HumanAttribute estimator gender output structure. This structure contains the result of gender estima...
Definition: IHumanAttributeEstimator.h:129
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
float getScore(ApparentColor color) const
Returns score of required color.
Definition: IHumanAttributeEstimator.h:372
HumanAttribute estimator hat output structure. This structure contains the result of hat estimation a...
Definition: IHumanAttributeEstimator.h:175
LowerBodyClothing result
estimation result (
Definition: IHumanAttributeEstimator.h:225
HumanAttribute estimator simplified color output structure. This structure contains the result of tru...
Definition: IHumanAttributeEstimator.h:98
Unified HumanAttribute estimator output structure.
Definition: IHumanAttributeEstimator.h:25
float unknown
unknown backpack state probability score
Definition: IHumanAttributeEstimator.h:204
bool isMulticolored
outwear is multicolored
Definition: IHumanAttributeEstimator.h:69
HumanAttribute estimator backpack output structure. This structure contains the result of backpack es...
Definition: IHumanAttributeEstimator.h:200
Optional< ApparentColorEstimation > shoeColor
shoe color color estimation (
Definition: IHumanAttributeEstimator.h:251
float female
female gender probability score
Definition: IHumanAttributeEstimator.h:131
Gender result
estimation result (
Definition: IHumanAttributeEstimator.h:130
person's gender is male
bool isGreen
outwear is green
Definition: IHumanAttributeEstimator.h:58
float longSize
long sleeves size probability score
Definition: IHumanAttributeEstimator.h:155
Object system types and interfaces.
bool isBeige
outwear is beige
Definition: IHumanAttributeEstimator.h:67
Gender
HumanAttribute estimator gender output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:117
float scores[static_cast< int >(ApparentColor::Count)]
estimation scores
Definition: IHumanAttributeEstimator.h:103
virtual Result< FSDKError > aggregate(Span< const HumanAttributeResult > estimations, HumanAttributeRequest request, HumanAttributeResult &result) const noexcept=0
Aggregate human body attributes.
estimate lower body clothing state
float unknown
unknown sleeves size probability score
Definition: IHumanAttributeEstimator.h:156
HumanAttribute estimator lower body clothing output structure. This structure contains the result of ...
Definition: IHumanAttributeEstimator.h:224
bool isBlue
outwear is blue
Definition: IHumanAttributeEstimator.h:57
bool isBlack
outwear is black
Definition: IHumanAttributeEstimator.h:56
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual Result< FSDKError > validate(Span< const Image > humanWarps, HumanAttributeRequest request, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
float unknown
unknown gender probability score
Definition: IHumanAttributeEstimator.h:133
bool isPurple
outwear is purple
Definition: IHumanAttributeEstimator.h:61
Backpack
HumanAttribute estimator backpack enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:188
HumanAttribute estimator interface.
Definition: IHumanAttributeEstimator.h:274
HumanAttributeRequest
HumanAttributeRequest lists all possible estimation attributes that HumanAttributeEstimator is curren...
Definition: IHumanAttributeEstimator.h:258
person's gender is female
bool isPink
outwear is pink
Definition: IHumanAttributeEstimator.h:65
virtual Result< FSDKError > estimate(const Image &humanWarp, HumanAttributeRequest request, HumanAttributeResult &result) const noexcept=0
Estimate human body attributes.
OutwearColorEstimation lowerBodyClothingColor
lower body clothing color estimation (
Definition: IHumanAttributeEstimator.h:231
float skirt
skirt probability score
Definition: IHumanAttributeEstimator.h:228
float male
male gender probability score
Definition: IHumanAttributeEstimator.h:132
Optional< SleeveSizeEstimation > sleeve
sleeve estimation (
Definition: IHumanAttributeEstimator.h:246
Hat result
estimation result (
Definition: IHumanAttributeEstimator.h:176
bool isWhite
attribute is white
Definition: IHumanAttributeEstimator.h:100
float pants
pants probability score
Definition: IHumanAttributeEstimator.h:226
float unknown
unknown state probability score
Definition: IHumanAttributeEstimator.h:229
bool isYellow
outwear is yellow
Definition: IHumanAttributeEstimator.h:64
Optional< OutwearColorEstimation > outwearColor
outwear color estimation (
Definition: IHumanAttributeEstimator.h:249
Optional< GenderEstimation > gender
Gender estimation by human body.
Definition: IHumanAttributeEstimator.h:244
SleeveSize result
estimation result (
Definition: IHumanAttributeEstimator.h:153
person's gender is unknown
float getScore(Color color) const
Returns score of required outwear color.
Definition: IHumanAttributeEstimator.h:346
Image.
Definition: Image.h:39
bool isGrey
outwear is grey
Definition: IHumanAttributeEstimator.h:59
Optional< float > age
Age estimation by human body.
Definition: IHumanAttributeEstimator.h:238
bool isWhite
outwear is white
Definition: IHumanAttributeEstimator.h:63
LowerBodyClothing
HumanAttribute estimator lower body clothing enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:211
HumanAttribute estimator sleeves size output structure. This structure contains the result of sleeves...
Definition: IHumanAttributeEstimator.h:152
SleeveSize
HumanAttribute estimator sleeves size output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:140
bool isOther
attribute is some other
Definition: IHumanAttributeEstimator.h:101
Hat
HumanAttribute estimator hat output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:163
bool isRed
outwear is red
Definition: IHumanAttributeEstimator.h:62
float unknown
unknown hat state probability score
Definition: IHumanAttributeEstimator.h:179
HumanAttribute estimator outwear color output structure. This structure contains the result of outwea...
Definition: IHumanAttributeEstimator.h:55
float scores[static_cast< int >(Color::Count)]
estimation scores
Definition: IHumanAttributeEstimator.h:70
Optional< LowerBodyClothingEstimation > lowerBodyClothing
lower body clothing estimation (
Definition: IHumanAttributeEstimator.h:250
ApparentColor
HumanAttribute estimator simplified color enum. This enum is truncated version of full color palette...
Definition: IHumanAttributeEstimator.h:84
Color
HumanAttribute estimator color enum. This enum contains all possible estimation results.
Definition: IHumanAttributeEstimator.h:31
float hat
hat probability score
Definition: IHumanAttributeEstimator.h:178
float shortSize
short sleeves size probability score
Definition: IHumanAttributeEstimator.h:154
float noBackpack
no backpack probability score
Definition: IHumanAttributeEstimator.h:202
bool isBrown
outwear is brown
Definition: IHumanAttributeEstimator.h:66
ApparentColorEstimation hatColor
hat color estimation (
Definition: IHumanAttributeEstimator.h:181
Backpack result
estimation result (
Definition: IHumanAttributeEstimator.h:201
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
bool isUnknown
attribute is unknown
Definition: IHumanAttributeEstimator.h:102
float noHat
no hat probability score
Definition: IHumanAttributeEstimator.h:177