Face Engine SDK  5.14.0
A face detection, recognition and tracking engine.
 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 
29  enum class EyeBrowState {
30  Neutral = 0,
31  Raised,
32  Squinting,
33  Frowning
34  };
35 
36  float neutralScore;
37  float raisedScore;
39  float frowningScore;
41  };
42 
56  virtual Result<FSDKError>
57  estimate(
58  const Image& warp,
59  EyeBrowEstimation& estimation) const noexcept = 0;
60 
71  virtual Result<FSDKError>
72  estimate(
73  Span<const Image> warps,
74  Span<EyeBrowEstimation> estimations) const noexcept = 0;
75 
86  virtual Result<FSDKError>
87  validate(
88  Span<const Image> warps,
89  Span<Result<FSDKError>> errors) const noexcept = 0;
90  };
92 } // namespace fsdk
EyeBrow estimation structure.
Definition: IEyeBrowEstimator.h:24
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
float raisedScore
0(not raised)..1(raised).
Definition: IEyeBrowEstimator.h:37
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
float neutralScore
0(not neutral)..1(neutral).
Definition: IEyeBrowEstimator.h:36
Object system types and interfaces.
float frowningScore
0(not frowning)..1(frowning).
Definition: IEyeBrowEstimator.h:39
Common SDK error codes.
virtual Result< FSDKError > estimate(const Image &warp, EyeBrowEstimation &estimation) const noexcept=0
Estimate EyeBrowEstimation probabilities.
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.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float squintingScore
0(not squinting)..1(squinting).
Definition: IEyeBrowEstimator.h:38
EyeBrowState
EyeBrow estimator output enum. This enum contains all possible estimation results.
Definition: IEyeBrowEstimator.h:29
Image.
Definition: Image.h:39
EyeBrowState eyeBrowState
EyeBrow state.
Definition: IEyeBrowEstimator.h:40
EyeBrow estimator interface.
Definition: IEyeBrowEstimator.h:47
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14