6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Result.h>
8 #include <fsdk/Types/Span.h>
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
39 float scores[
static_cast<int>(HeadWearState::Count)];
75 float scores[
static_cast<int>(HeadWearType::Count)];
148 case HeadWearState::Yes:
149 case HeadWearState::No:
150 return scores[
static_cast<int>(state)];
161 case HeadWearType::NoHeadWear:
162 case HeadWearType::BaseballCap:
163 case HeadWearType::Beanie:
164 case HeadWearType::PeakedCap:
165 case HeadWearType::Shawl:
166 case HeadWearType::HatWithEarFlaps:
167 case HeadWearType::Helmet:
168 case HeadWearType::Hood:
169 case HeadWearType::Hat:
170 case HeadWearType::Other:
171 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:75
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
HeadWearType estimator output structure. This structure contains the result of estimation (...
Definition: IHeadWearEstimator.h:73
HeadWearState
HeadWearState estimator output enum. This enum contains all possible estimation results.
Definition: IHeadWearEstimator.h:25
HeadWear estimator interface.
Definition: IHeadWearEstimator.h:101
Object system types and interfaces.
HeadWearState result
estimation result (
Definition: IHeadWearEstimator.h:38
HeadWearType
HeadWearType estimator output enum. This enum contains all possible estimation results.
Definition: IHeadWearEstimator.h:53
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:146
float scores[static_cast< int >(HeadWearState::Count)]
estimation scores
Definition: IHeadWearEstimator.h:39
float getScore(HeadWearType type) const
Returns score of required headwear type.
Definition: IHeadWearEstimator.h:159
Image.
Definition: Image.h:39
HeadWearStateEstimation state
Definition: IHeadWearEstimator.h:91
HeadWearTypeEstimation type
Definition: IHeadWearEstimator.h:93
HeadWear estimator output structure. This structure contains the result of HeadWearState and HeadWear...
Definition: IHeadWearEstimator.h:90
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
HeadWearState estimator output structure. This structure contains the result of estimation (...
Definition: IHeadWearEstimator.h:37
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
HeadWearType result
estimation result (
Definition: IHeadWearEstimator.h:74