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

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
19 struct EyeBrowEstimation {
24 enum class EyeBrowState {
25 Neutral = 0,
26 Raised,
27 Squinting,
28 Frowning
29 };
30
31 float neutralScore;
32 float raisedScore;
33 float squintingScore;
34 float frowningScore;
35 EyeBrowState eyeBrowState;
36 };
37
42 struct IEyeBrowEstimator : IRefCounted {
51 virtual Result<FSDKError>
52 estimate(
53 const Image& warp,
54 EyeBrowEstimation& estimation) const noexcept = 0;
55
66 virtual Result<FSDKError>
67 estimate(
68 Span<const Image> warps,
69 Span<EyeBrowEstimation> estimations) const noexcept = 0;
70
81 virtual Result<FSDKError>
82 validate(
83 Span<const Image> warps,
84 Span<Result<FSDKError>> errors) const noexcept = 0;
85 };
86
87 } // namespace fsdk
fsdk::EyeBrowEstimation
EyeBrow estimation structure.
Definition: IEyeBrowEstimator.h:19
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::EyeBrowEstimation::raisedScore
float raisedScore
0(not raised)..1(raised).
Definition: IEyeBrowEstimator.h:32
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
fsdk::EyeBrowEstimation::neutralScore
float neutralScore
0(not neutral)..1(neutral).
Definition: IEyeBrowEstimator.h:31
IObject.h
Object system types and interfaces.
fsdk::EyeBrowEstimation::frowningScore
float frowningScore
0(not frowning)..1(frowning).
Definition: IEyeBrowEstimator.h:34
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:36
fsdk::EyeBrowEstimation::squintingScore
float squintingScore
0(not squinting)..1(squinting).
Definition: IEyeBrowEstimator.h:33
fsdk::EyeBrowEstimation::EyeBrowState
EyeBrowState
EyeBrow estimator output enum. This enum contains all possible estimation results.
Definition: IEyeBrowEstimator.h:24
fsdk::Image
Image.
Definition: Image.h:38
fsdk::EyeBrowEstimation::eyeBrowState
EyeBrowState eyeBrowState
EyeBrow state.
Definition: IEyeBrowEstimator.h:35
fsdk::IEyeBrowEstimator
EyeBrow estimator interface.
Definition: IEyeBrowEstimator.h:42
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14