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)];
143 case HeadWearState::Yes:
144 case HeadWearState::No:
145 return scores[
static_cast<int>(state)];
156 case HeadWearType::NoHeadWear:
157 case HeadWearType::BaseballCap:
158 case HeadWearType::Beanie:
159 case HeadWearType::PeakedCap:
160 case HeadWearType::Shawl:
161 case HeadWearType::HatWithEarFlaps:
162 case HeadWearType::Helmet:
163 case HeadWearType::Hood:
164 case HeadWearType::Hat:
165 case HeadWearType::Other:
166 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
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: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:141
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:154
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:14
HeadWearState estimator output structure. This structure contains the result of estimation (...
Definition: IHeadWearEstimator.h:32
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:69