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)];
272 Optional<ApparentColorEstimation> shoeColor;
308 const Image& humanWarp,
383 case Color::Multicolored:
384 return scores[
static_cast<int>(color)];
396 case ApparentColor::Black:
397 case ApparentColor::White:
398 case ApparentColor::Other:
399 case ApparentColor::Unknown:
400 return scores[
static_cast<int>(color)];
417 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
skirt probability score
Definition: IHumanAttributeEstimator.h:232
bool isOrange
outwear is orange
Definition: IHumanAttributeEstimator.h:60
Optional< HatEstimation > headwear
backpack estimation (
Definition: IHumanAttributeEstimator.h:260
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
Optional< BackpackEstimation > backpack
outwear color estimation (
Definition: IHumanAttributeEstimator.h:263
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:27
float getScore(ApparentColor color) const
Returns score of required color.
Definition: IHumanAttributeEstimator.h:394
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:226
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
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:37
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:295
HumanAttributeRequest
HumanAttributeRequest lists all possible estimation attributes that HumanAttributeEstimator is curren...
Definition: IHumanAttributeEstimator.h:279
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.
float skirt
unknown state probability score
Definition: IHumanAttributeEstimator.h:235
float male
male gender probability score
Definition: IHumanAttributeEstimator.h:132
Optional< SleeveSizeEstimation > sleeve
headwear estimation (
Definition: IHumanAttributeEstimator.h:257
Hat result
estimation result (
Definition: IHumanAttributeEstimator.h:176
bool isWhite
attribute is white
Definition: IHumanAttributeEstimator.h:100
float pants
shorts probability score
Definition: IHumanAttributeEstimator.h:229
float unknown
lower body clothing color estimation (
Definition: IHumanAttributeEstimator.h:238
bool isYellow
outwear is yellow
Definition: IHumanAttributeEstimator.h:64
Optional< OutwearColorEstimation > outwearColor
lower body clothing estimation (
Definition: IHumanAttributeEstimator.h:266
Optional< GenderEstimation > gender
Gender estimation by human body.
Definition: IHumanAttributeEstimator.h:254
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:368
Image.
Definition: Image.h:38
bool isGrey
outwear is grey
Definition: IHumanAttributeEstimator.h:59
Optional< float > age
Age estimation by human body.
Definition: IHumanAttributeEstimator.h:248
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
shoe color color estimation (
Definition: IHumanAttributeEstimator.h:269
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