Face Engine SDK  5.3.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 
21  struct MouthEstimation {
22  float opened;
23  float smile;
24  float occluded;
25  bool isOpened;
26  bool isSmiling;
27  bool isOccluded;
28  };
29 
35 
42  virtual Result<FSDKError>
43  estimate(
44  const Image& warp,
45  MouthEstimation& estimation) const noexcept = 0;
46  };
47 
48 } // namespace fsdk
#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
Common data types and structures.
virtual Result< FSDKError > estimate(const Image &warp, MouthEstimation &estimation) const noexcept=0
Estimate MouthEstimation probabilities.
float smile
person is smiling score
Definition: IMouthEstimator.h:23
Object system types and interfaces.
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:24
Common SDK error codes.
Mouth estimator output structure. Stores flags that indicates wich mouth feature is present...
Definition: IMouthEstimator.h:21
Base strong reference counted object interface.
Definition: IRefCounted.h:36
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:27
Mouth estimator interface.
Definition: IMouthEstimator.h:34
float opened
mouth opened score
Definition: IMouthEstimator.h:22
Image.
Definition: Image.h:37
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:25
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:26