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
IMouthEstimator.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(IMouthEstimator);
12 #endif
13 
18  enum class SmileType {
19  None,
20  SmileLips,
21  SmileOpen
22  };
23 
30  struct SmileTypeScores {
31  float smileLips;
32  float smileOpen;
33  };
34 
42  struct MouthEstimation {
43  float opened;
44  float smile;
45  float occluded;
46  bool isOpened;
47  bool isSmiling;
48  bool isOccluded;
49  };
50 
59  float opened;
60  float smile;
61  float occluded;
62  bool isOpened;
63  bool isSmiling;
64  bool isOccluded;
65 
68  };
69 
83  virtual Result<FSDKError>
84  estimate(
85  const Image& warp,
86  MouthEstimation& estimation) const noexcept = 0;
87 
99  virtual Result<FSDKError>
100  estimate(
101  Span<const Image> warps,
102  Span<MouthEstimation> mouthEstimations) const noexcept = 0;
103 
112  virtual Result<FSDKError>
113  estimate(
114  const Image& warp,
115  MouthEstimationExtended& estimation) const noexcept = 0;
116 
128  virtual Result<FSDKError>
129  estimate(
130  Span<const Image> warps,
131  Span<MouthEstimationExtended> mouthEstimations) const noexcept = 0;
132 
143  virtual Result<FSDKError>
144  validate(
145  Span<const Image> warps,
146  Span<Result<FSDKError>> errors) const noexcept = 0;
147 
148  };
149 
150 } // namespace fsdk
float opened
mouth opened score
Definition: IMouthEstimator.h:59
regular smile, without teeth&#39;s exposed
smile with teeth&#39;s exposed
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
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.
Common data types and structures.
virtual Result< FSDKError > estimate(const Image &warp, MouthEstimation &estimation) const noexcept=0
Estimate MouthEstimation probabilities.
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:64
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:63
float smile
person is smiling score
Definition: IMouthEstimator.h:44
Object system types and interfaces.
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:45
float smileLips
person is smiling with lips score
Definition: IMouthEstimator.h:31
Common SDK error codes.
Mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:42
float smileOpen
person is smiling with open mouth score
Definition: IMouthEstimator.h:32
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Extended mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:58
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:48
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:62
Scores of smile type. Probability scores are defined in [0,1] range. Scores in this struct sum up to ...
Definition: IMouthEstimator.h:30
SmileTypeScores smileTypeScores
Smile types scores (.
Definition: IMouthEstimator.h:66
Mouth estimator interface.
Definition: IMouthEstimator.h:74
float opened
mouth opened score
Definition: IMouthEstimator.h:43
Image.
Definition: Image.h:38
SmileType smileType
Contains smile type if person &quot;isSmiling&quot; (.
Definition: IMouthEstimator.h:67
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:61
float smile
person is smiling score
Definition: IMouthEstimator.h:60
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:46
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:47
SmileType
MouthEstimationExtended smile type enum. This enum contains all possible smile types.
Definition: IMouthEstimator.h:18