Face Engine SDK  5.8.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 
24  enum class EyeBrowState {
25  Neutral = 0,
26  Raised,
27  Squinting,
28  Frowning
29  };
30 
31  float neutralScore;
32  float raisedScore;
34  float frowningScore;
36  };
37 
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
EyeBrow estimation structure.
Definition: IEyeBrowEstimator.h:19
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
float raisedScore
0(not raised)..1(raised).
Definition: IEyeBrowEstimator.h:32
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:31
Object system types and interfaces.
float frowningScore
0(not frowning)..1(frowning).
Definition: IEyeBrowEstimator.h:34
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:33
EyeBrowState
EyeBrow estimator output enum. This enum contains all possible estimation results.
Definition: IEyeBrowEstimator.h:24
Image.
Definition: Image.h:38
EyeBrowState eyeBrowState
EyeBrow state.
Definition: IEyeBrowEstimator.h:35
EyeBrow estimator interface.
Definition: IEyeBrowEstimator.h:42
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14