Face Engine SDK  5.21.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 
23  enum class SmileType {
24  None,
25  SmileLips,
26  SmileOpen
27  };
28 
35  struct SmileTypeScores {
36  float smileLips;
37  float smileOpen;
38  };
39 
47  struct MouthEstimation {
48  float opened;
49  float smile;
50  float occluded;
51  bool isOpened;
52  bool isSmiling;
53  bool isOccluded;
54  };
55 
64  float opened;
65  float smile;
66  float occluded;
67  bool isOpened;
68  bool isSmiling;
69  bool isOccluded;
70 
73  };
74 
88  virtual Result<FSDKError> estimate(const Image& warp, MouthEstimation& estimation) const noexcept = 0;
89 
101  virtual Result<FSDKError>
102  estimate(Span<const Image> warps, Span<MouthEstimation> mouthEstimations) const noexcept = 0;
103 
112  virtual Result<FSDKError>
113  estimate(const Image& warp, MouthEstimationExtended& estimation) const noexcept = 0;
114 
126  virtual Result<FSDKError>
127  estimate(Span<const Image> warps, Span<MouthEstimationExtended> mouthEstimations) const noexcept = 0;
128 
139  virtual Result<FSDKError>
140  validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
141  };
142 
144 } // namespace fsdk
float opened
mouth opened score
Definition: IMouthEstimator.h:64
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
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:69
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:68
smile with teeth&#39;s exposed
float smile
person is smiling score
Definition: IMouthEstimator.h:49
Object system types and interfaces.
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:50
float smileLips
person is smiling with lips score
Definition: IMouthEstimator.h:36
Common SDK error codes.
Mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:47
float smileOpen
person is smiling with open mouth score
Definition: IMouthEstimator.h:37
regular smile, without teeth&#39;s exposed
Base strong reference counted object interface.
Definition: IRefCounted.h:37
SmileType
MouthEstimationExtended smile type enum. This enum contains all possible smile types.
Definition: IMouthEstimator.h:23
Extended mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:63
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:53
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:67
Scores of smile type. Probability scores are defined in [0,1] range. Scores in this struct sum up to ...
Definition: IMouthEstimator.h:35
SmileTypeScores smileTypeScores
Smile types scores (.
Definition: IMouthEstimator.h:71
Mouth estimator interface.
Definition: IMouthEstimator.h:79
float opened
mouth opened score
Definition: IMouthEstimator.h:48
Image.
Definition: Image.h:38
SmileType smileType
Contains smile type if person &quot;isSmiling&quot; (.
Definition: IMouthEstimator.h:72
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:66
float smile
person is smiling score
Definition: IMouthEstimator.h:65
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:51
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:52