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
156 float scores[
static_cast<int>(Color::Count)];
215 const Image& humanWarp,
290 case Color::Multicolored:
291 return scores[
static_cast<int>(color)];
304 static_cast<int>(lhs) | static_cast<int>(rhs));
311 return static_cast<int>(lhs) & static_cast<int>(rhs);
bool isKhaki
outwear is khaki
Definition: IHumanAttributeEstimator.h:154
float backpack
backpack probability score
Definition: IHumanAttributeEstimator.h:109
bool isOrange
outwear is orange
Definition: IHumanAttributeEstimator.h:146
Optional< HatEstimation > headwear
headwear estimation (
Definition: IHumanAttributeEstimator.h:179
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Optional< BackpackEstimation > backpack
backpack estimation (
Definition: IHumanAttributeEstimator.h:180
HumanAttribute estimator gender output structure. This structure contains the result of gender estima...
Definition: IHumanAttributeEstimator.h:37
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:83
Unified HumanAttribute estimator output structure.
Definition: IHumanAttributeEstimator.h:20
float unknown
unknown backpack state probability score
Definition: IHumanAttributeEstimator.h:110
bool isMulticolored
outwear is multicolored
Definition: IHumanAttributeEstimator.h:155
HumanAttribute estimator backpack output structure. This structure contains the result of backpack es...
Definition: IHumanAttributeEstimator.h:106
float female
female gender probability score
Definition: IHumanAttributeEstimator.h:39
Gender result
estimation result (
Definition: IHumanAttributeEstimator.h:38
person's gender is male
bool isGreen
outwear is green
Definition: IHumanAttributeEstimator.h:144
float longSize
long sleeves size probability score
Definition: IHumanAttributeEstimator.h:63
Object system types and interfaces.
bool isBeige
outwear is beige
Definition: IHumanAttributeEstimator.h:153
Gender
HumanAttribute estimator gender output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:25
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:64
bool isBlue
outwear is blue
Definition: IHumanAttributeEstimator.h:143
bool isBlack
outwear is black
Definition: IHumanAttributeEstimator.h:142
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:41
bool isPurple
outwear is purple
Definition: IHumanAttributeEstimator.h:147
float getScore(Color color) const
Returns score of required outwear color.
Definition: IHumanAttributeEstimator.h:274
Backpack
HumanAttribute estimator backpack enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:94
HumanAttribute estimator interface.
Definition: IHumanAttributeEstimator.h:202
person's gender is female
bool isPink
outwear is pink
Definition: IHumanAttributeEstimator.h:151
virtual Result< FSDKError > estimate(const Image &humanWarp, HumanAttributeRequest request, HumanAttributeResult &result) const noexcept=0
Estimate human body attributes.
float male
male gender probability score
Definition: IHumanAttributeEstimator.h:40
Optional< SleeveSizeEstimation > sleeve
sleeve estimation (
Definition: IHumanAttributeEstimator.h:178
Hat result
estimation result (
Definition: IHumanAttributeEstimator.h:84
bool isYellow
outwear is yellow
Definition: IHumanAttributeEstimator.h:150
Optional< OutwearColorEstimation > outwearColor
outwear color estimation (
Definition: IHumanAttributeEstimator.h:181
Optional< GenderEstimation > gender
Gender estimation by human body.
Definition: IHumanAttributeEstimator.h:176
SleeveSize result
estimation result (
Definition: IHumanAttributeEstimator.h:61
person's gender is unknown
Image.
Definition: Image.h:38
bool isGrey
outwear is grey
Definition: IHumanAttributeEstimator.h:145
Optional< float > age
Age estimation by human body.
Definition: IHumanAttributeEstimator.h:170
bool isWhite
outwear is white
Definition: IHumanAttributeEstimator.h:149
HumanAttribute estimator sleeves size output structure. This structure contains the result of sleeves...
Definition: IHumanAttributeEstimator.h:60
SleeveSize
HumanAttribute estimator sleeves size output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:48
Hat
HumanAttribute estimator hat output enum. This enum contains all possible estimation results...
Definition: IHumanAttributeEstimator.h:71
bool isRed
outwear is red
Definition: IHumanAttributeEstimator.h:148
float unknown
unknown hat state probability score
Definition: IHumanAttributeEstimator.h:87
HumanAttribute estimator outwear color output structure. This structure contains the result of outwea...
Definition: IHumanAttributeEstimator.h:141
float scores[static_cast< int >(Color::Count)]
estimation scores
Definition: IHumanAttributeEstimator.h:156
Color
HumanAttribute estimator color enum. This enum contains all possible estimation results.
Definition: IHumanAttributeEstimator.h:117
float hat
hat probability score
Definition: IHumanAttributeEstimator.h:86
float shortSize
short sleeves size probability score
Definition: IHumanAttributeEstimator.h:62
float noBackpack
no backpack probability score
Definition: IHumanAttributeEstimator.h:108
bool isBrown
outwear is brown
Definition: IHumanAttributeEstimator.h:152
HumanAttributeRequest
HumanAttributeRequest lists all possible estimation attributes that HumanAttributeEstimator is curren...
Definition: IHumanAttributeEstimator.h:188
Backpack result
estimation result (
Definition: IHumanAttributeEstimator.h:107
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
float noHat
no hat probability score
Definition: IHumanAttributeEstimator.h:85