| Face Engine SDK 5.34.0 A face detection, recognition and tracking engine.

IEyeBrowEstimator.h
1 #pragma once
2
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IEyeBrowEstimator);
12 #endif
13
24 struct EyeBrowEstimation {
29 enum class EyeBrowState {
30 Neutral = 0,
31 Raised,
32 Squinting,
33 Frowning
34 };
35
36 float neutralScore;
37 float raisedScore;
38 float squintingScore;
39 float frowningScore;
40 EyeBrowState eyeBrowState;
41 };
42
47 struct IEyeBrowEstimator : IRefCounted {
56 virtual Result<FSDKError> estimate(const Image& warp, EyeBrowEstimation& estimation) const noexcept = 0;
57
69 virtual Result<FSDKError>
70 estimate(Span<const Image> warps, Span<EyeBrowEstimation> estimations) const noexcept = 0;
71
82 virtual Result<FSDKError>
83 validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
84 };
85
87 } // namespace fsdk
fsdk::EyeBrowEstimation
EyeBrow estimation structure.
Definition: IEyeBrowEstimator.h:24
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk::EyeBrowEstimation::raisedScore
float raisedScore
0(not raised)..1(raised).
Definition: IEyeBrowEstimator.h:37
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Types.h
Common data types and structures.
fsdk::EyeBrowEstimation::neutralScore
float neutralScore
0(not neutral)..1(neutral).
Definition: IEyeBrowEstimator.h:36
IObject.h
Object system types and interfaces.
fsdk::EyeBrowEstimation::frowningScore
float frowningScore
0(not frowning)..1(frowning).
Definition: IEyeBrowEstimator.h:39
FSDKError.h
Common SDK error codes.
fsdk::IEyeBrowEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, EyeBrowEstimation &estimation) const noexcept=0
Estimate EyeBrowEstimation probabilities.
fsdk::IEyeBrowEstimator::validate
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.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::EyeBrowEstimation::squintingScore
float squintingScore
0(not squinting)..1(squinting).
Definition: IEyeBrowEstimator.h:38
fsdk::EyeBrowEstimation::EyeBrowState
EyeBrowState
EyeBrow estimator output enum. This enum contains all possible estimation results.
Definition: IEyeBrowEstimator.h:29
fsdk::Image
Image.
Definition: Image.h:38
fsdk::EyeBrowEstimation::eyeBrowState
EyeBrowState eyeBrowState
EyeBrow state.
Definition: IEyeBrowEstimator.h:40
fsdk::IEyeBrowEstimator
EyeBrow estimator interface.
Definition: IEyeBrowEstimator.h:47
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14