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)];
142 case HeadWearState::Yes:
143 case HeadWearState::No:
144 return scores[
static_cast<int>(state)];
155 case HeadWearType::NoHeadWear:
156 case HeadWearType::BaseballCap:
157 case HeadWearType::Beanie:
158 case HeadWearType::PeakedCap:
159 case HeadWearType::Shawl:
160 case HeadWearType::HatWithEarFlaps:
161 case HeadWearType::Helmet:
162 case HeadWearType::Hood:
163 case HeadWearType::Hat:
164 case HeadWearType::Other:
165 return scores[
static_cast<int>(type)];
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
float scores[static_cast< int >(HeadWearType::Count)]
estimation scores
Definition: IHeadWearEstimator.h:75
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
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:99
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:37
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:140
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:153
Image.
Definition: Image.h:38
HeadWearStateEstimation state
headwear state estimation (
Definition: IHeadWearEstimator.h:91
HeadWearTypeEstimation type
headwear type estimation (
Definition: IHeadWearEstimator.h:92
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