| Face Engine SDK 5.34.0 A face detection, recognition and tracking engine.

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
63 struct MouthEstimationExtended {
64 float opened;
65 float smile;
66 float occluded;
67 bool isOpened;
68 bool isSmiling;
69 bool isOccluded;
70
71 SmileTypeScores smileTypeScores;
72 SmileType smileType;
73 };
74
79 struct IMouthEstimator : IRefCounted {
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
fsdk::MouthEstimationExtended::opened
float opened
mouth opened score
Definition: IMouthEstimator.h:64
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::IMouthEstimator::validate
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.
Types.h
Common data types and structures.
fsdk::IMouthEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, MouthEstimation &estimation) const noexcept=0
Estimate MouthEstimation probabilities.
fsdk::MouthEstimationExtended::isOccluded
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:69
fsdk::MouthEstimationExtended::isSmiling
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:68
fsdk::SmileType::SmileOpen
smile with teeth&#39;s exposed
fsdk::MouthEstimation::smile
float smile
person is smiling score
Definition: IMouthEstimator.h:49
IObject.h
Object system types and interfaces.
fsdk::MouthEstimation::occluded
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:50
fsdk::SmileTypeScores::smileLips
float smileLips
person is smiling with lips score
Definition: IMouthEstimator.h:36
fsdk::SmileType::None
No smile.
FSDKError.h
Common SDK error codes.
fsdk::MouthEstimation
Mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:47
fsdk::SmileTypeScores::smileOpen
float smileOpen
person is smiling with open mouth score
Definition: IMouthEstimator.h:37
fsdk::SmileType::SmileLips
regular smile, without teeth&#39;s exposed
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::SmileType
SmileType
MouthEstimationExtended smile type enum. This enum contains all possible smile types.
Definition: IMouthEstimator.h:23
fsdk::MouthEstimationExtended
Extended mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:63
fsdk::MouthEstimation::isOccluded
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:53
fsdk::MouthEstimationExtended::isOpened
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:67
fsdk::SmileTypeScores
Scores of smile type. Probability scores are defined in [0,1] range. Scores in this struct sum up to ...
Definition: IMouthEstimator.h:35
fsdk::MouthEstimationExtended::smileTypeScores
SmileTypeScores smileTypeScores
Smile types scores (.
Definition: IMouthEstimator.h:71
fsdk::IMouthEstimator
Mouth estimator interface.
Definition: IMouthEstimator.h:79
fsdk::MouthEstimation::opened
float opened
mouth opened score
Definition: IMouthEstimator.h:48
fsdk::Image
Image.
Definition: Image.h:38
fsdk::MouthEstimationExtended::smileType
SmileType smileType
Contains smile type if person "isSmiling" (.
Definition: IMouthEstimator.h:72
fsdk::MouthEstimationExtended::occluded
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:66
fsdk::MouthEstimationExtended::smile
float smile
person is smiling score
Definition: IMouthEstimator.h:65
fsdk::MouthEstimation::isOpened
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:51
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
fsdk::MouthEstimation::isSmiling
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:52