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
65 float scores[
static_cast<int>(Color::Count)];
98 float scores[
static_cast<int>(ApparentColor::Count)];
282 const Image& humanWarp,
357 case Color::Multicolored:
358 return scores[
static_cast<int>(color)];
370 case ApparentColor::Black:
371 case ApparentColor::White:
372 case ApparentColor::Other:
373 case ApparentColor::Unknown:
374 return scores[
static_cast<int>(color)];
387 static_cast<int>(lhs) | static_cast<int>(rhs));
394 return static_cast<int>(lhs) & static_cast<int>(rhs);
bool isBlack
attribute is black
Definition: IHumanAttributeEstimator.h:94
bool isKhaki
outwear is khaki
Definition: IHumanAttributeEstimator.h:63
float backpack
backpack probability score
Definition: IHumanAttributeEstimator.h:198
float shorts
shorts probability score
Definition: IHumanAttributeEstimator.h:222
bool isOrange
outwear is orange
Definition: IHumanAttributeEstimator.h:55
estimate lower body clothing state
Optional< HatEstimation > headwear
headwear estimation (
Definition: IHumanAttributeEstimator.h:242
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Optional< BackpackEstimation > backpack
backpack estimation (
Definition: IHumanAttributeEstimator.h:243
HumanAttribute estimator gender output structure. This structure contains the result of gender estima...
Definition: IHumanAttributeEstimator.h:124
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
HumanAttribute estimator hat output structure. This structure contains the result of hat estimation a...
Definition: IHumanAttributeEstimator.h:170
LowerBodyClothing result
estimation result (
Definition: IHumanAttributeEstimator.h:220
HumanAttribute estimator simplified color output structure. This structure contains the result of tru...
Definition: IHumanAttributeEstimator.h:93
Unified HumanAttribute estimator output structure.
Definition: IHumanAttributeEstimator.h:20
float unknown
unknown backpack state probability score
Definition: IHumanAttributeEstimator.h:199
bool isMulticolored
outwear is multicolored
Definition: IHumanAttributeEstimator.h:64
HumanAttribute estimator backpack output structure. This structure contains the result of backpack es...
Definition: IHumanAttributeEstimator.h:195
Optional< ApparentColorEstimation > shoeColor
shoe color color estimation (
Definition: IHumanAttributeEstimator.h:246
float female
female gender probability score
Definition: IHumanAttributeEstimator.h:126
Gender result
estimation result (
Definition: IHumanAttributeEstimator.h:125
person's gender is male
bool isGreen
outwear is green
Definition: IHumanAttributeEstimator.h:53
float longSize
long sleeves size probability score
Definition: IHumanAttributeEstimator.h:150
Object system types and interfaces.
bool isBeige
outwear is beige
Definition: IHumanAttributeEstimator.h:62
Gender
HumanAttribute estimator gender output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:112
float scores[static_cast< int >(ApparentColor::Count)]
estimation scores
Definition: IHumanAttributeEstimator.h:98
virtual Result< FSDKError > aggregate(Span< const HumanAttributeResult > estimations, HumanAttributeRequest request, HumanAttributeResult &result) const noexcept=0
Aggregate human body attributes.
float unknown
unknown sleeves size probability score
Definition: IHumanAttributeEstimator.h:151
HumanAttribute estimator lower body clothing output structure. This structure contains the result of ...
Definition: IHumanAttributeEstimator.h:219
bool isBlue
outwear is blue
Definition: IHumanAttributeEstimator.h:52
bool isBlack
outwear is black
Definition: IHumanAttributeEstimator.h:51
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:128
bool isPurple
outwear is purple
Definition: IHumanAttributeEstimator.h:56
float getScore(Color color) const
Returns score of required outwear color.
Definition: IHumanAttributeEstimator.h:341
Backpack
HumanAttribute estimator backpack enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:183
HumanAttribute estimator interface.
Definition: IHumanAttributeEstimator.h:269
person's gender is female
bool isPink
outwear is pink
Definition: IHumanAttributeEstimator.h:60
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:226
float skirt
skirt probability score
Definition: IHumanAttributeEstimator.h:223
float male
male gender probability score
Definition: IHumanAttributeEstimator.h:127
Optional< SleeveSizeEstimation > sleeve
sleeve estimation (
Definition: IHumanAttributeEstimator.h:241
Hat result
estimation result (
Definition: IHumanAttributeEstimator.h:171
bool isWhite
attribute is white
Definition: IHumanAttributeEstimator.h:95
float pants
pants probability score
Definition: IHumanAttributeEstimator.h:221
float unknown
unknown state probability score
Definition: IHumanAttributeEstimator.h:224
bool isYellow
outwear is yellow
Definition: IHumanAttributeEstimator.h:59
Optional< OutwearColorEstimation > outwearColor
outwear color estimation (
Definition: IHumanAttributeEstimator.h:244
Optional< GenderEstimation > gender
Gender estimation by human body.
Definition: IHumanAttributeEstimator.h:239
SleeveSize result
estimation result (
Definition: IHumanAttributeEstimator.h:148
person's gender is unknown
Image.
Definition: Image.h:38
bool isGrey
outwear is grey
Definition: IHumanAttributeEstimator.h:54
Optional< float > age
Age estimation by human body.
Definition: IHumanAttributeEstimator.h:233
bool isWhite
outwear is white
Definition: IHumanAttributeEstimator.h:58
LowerBodyClothing
HumanAttribute estimator lower body clothing enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:206
HumanAttribute estimator sleeves size output structure. This structure contains the result of sleeves...
Definition: IHumanAttributeEstimator.h:147
SleeveSize
HumanAttribute estimator sleeves size output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:135
bool isOther
attribute is some other
Definition: IHumanAttributeEstimator.h:96
Hat
HumanAttribute estimator hat output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:158
bool isRed
outwear is red
Definition: IHumanAttributeEstimator.h:57
float unknown
unknown hat state probability score
Definition: IHumanAttributeEstimator.h:174
HumanAttribute estimator outwear color output structure. This structure contains the result of outwea...
Definition: IHumanAttributeEstimator.h:50
float scores[static_cast< int >(Color::Count)]
estimation scores
Definition: IHumanAttributeEstimator.h:65
Optional< LowerBodyClothingEstimation > lowerBodyClothing
lower body clothing estimation (
Definition: IHumanAttributeEstimator.h:245
ApparentColor
HumanAttribute estimator simplified color enum. This enum is truncated version of full color palette...
Definition: IHumanAttributeEstimator.h:79
Color
HumanAttribute estimator color enum. This enum contains all possible estimation results.
Definition: IHumanAttributeEstimator.h:26
float hat
hat probability score
Definition: IHumanAttributeEstimator.h:173
float shortSize
short sleeves size probability score
Definition: IHumanAttributeEstimator.h:149
float noBackpack
no backpack probability score
Definition: IHumanAttributeEstimator.h:197
bool isBrown
outwear is brown
Definition: IHumanAttributeEstimator.h:61
HumanAttributeRequest
HumanAttributeRequest lists all possible estimation attributes that HumanAttributeEstimator is curren...
Definition: IHumanAttributeEstimator.h:253
float getScore(ApparentColor color) const
Returns score of required color.
Definition: IHumanAttributeEstimator.h:367
ApparentColorEstimation hatColor
hat color estimation (
Definition: IHumanAttributeEstimator.h:176
Backpack result
estimation result (
Definition: IHumanAttributeEstimator.h:196
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:97
float noHat
no hat probability score
Definition: IHumanAttributeEstimator.h:172