6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Result.h>
8 #include <fsdk/Types/Span.h>
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 float scores[
static_cast<int>(HeadWearState::Count)];
70 float scores[
static_cast<int>(HeadWearType::Count)];
129 case HeadWearState::Yes:
130 case HeadWearState::No:
131 return scores[
static_cast<int>(state)];
142 case HeadWearType::NoHeadWear:
143 case HeadWearType::BaseballCap:
144 case HeadWearType::Beanie:
145 case HeadWearType::PeakedCap:
146 case HeadWearType::Shawl:
147 case HeadWearType::HatWithEarFlaps:
148 case HeadWearType::Helmet:
149 case HeadWearType::Hood:
150 case HeadWearType::Hat:
151 case HeadWearType::Other:
152 return scores[
static_cast<int>(type)];
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
float scores[static_cast< int >(HeadWearType::Count)]
estimation scores
Definition: IHeadWearEstimator.h:70
HeadWearType estimator output structure. This structure contains the result of estimation (...
Definition: IHeadWearEstimator.h:68
HeadWearState
HeadWearState estimator output enum. This enum contains all possible estimation results.
Definition: IHeadWearEstimator.h:20
HeadWear estimator interface.
Definition: IHeadWearEstimator.h:96
Object system types and interfaces.
HeadWearState result
estimation result (
Definition: IHeadWearEstimator.h:33
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual Result< FSDKError > estimate(const Image &warp, HeadWearEstimation &estimation) const noexcept=0
Estimate Head Wear probabilities.
float getScore(HeadWearState state) const
Returns score of required headwear state.
Definition: IHeadWearEstimator.h:127
float scores[static_cast< int >(HeadWearState::Count)]
estimation scores
Definition: IHeadWearEstimator.h:34
float getScore(HeadWearType type) const
Returns score of required headwear type.
Definition: IHeadWearEstimator.h:140
Image.
Definition: Image.h:38
HeadWearStateEstimation state
Definition: IHeadWearEstimator.h:86
HeadWearTypeEstimation type
Definition: IHeadWearEstimator.h:88
HeadWearType
HeadWearType estimator output enum. This enum contains all possible estimation results.
Definition: IHeadWearEstimator.h:48
HeadWear estimator output structure. This structure contains the result of HeadWearState and HeadWear...
Definition: IHeadWearEstimator.h:85
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
HeadWearState estimator output structure. This structure contains the result of estimation (...
Definition: IHeadWearEstimator.h:32
HeadWearType result
estimation result (
Definition: IHeadWearEstimator.h:69