| Face Engine SDK 5.12.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
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
58 struct MouthEstimationExtended {
59 float opened;
60 float smile;
61 float occluded;
62 bool isOpened;
63 bool isSmiling;
64 bool isOccluded;
65
66 SmileTypeScores smileTypeScores;
67 SmileType smileType;
68 };
69
74 struct IMouthEstimator : IRefCounted {
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
fsdk::MouthEstimationExtended::opened
float opened
mouth opened score
Definition: IMouthEstimator.h:59
fsdk::SmileType::SmileLips
regular smile, without teeth&#39;s exposed
fsdk::SmileType::SmileOpen
smile with teeth&#39;s exposed
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
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:64
fsdk::MouthEstimationExtended::isSmiling
bool isSmiling
Person is smiling flag.
Definition: IMouthEstimator.h:63
fsdk::MouthEstimation::smile
float smile
person is smiling score
Definition: IMouthEstimator.h:44
IObject.h
Object system types and interfaces.
fsdk::MouthEstimation::occluded
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:45
fsdk::SmileTypeScores::smileLips
float smileLips
person is smiling with lips score
Definition: IMouthEstimator.h:31
FSDKError.h
Common SDK error codes.
fsdk::MouthEstimation
Mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:42
fsdk::SmileTypeScores::smileOpen
float smileOpen
person is smiling with open mouth score
Definition: IMouthEstimator.h:32
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::MouthEstimationExtended
Extended mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition: IMouthEstimator.h:58
fsdk::MouthEstimation::isOccluded
bool isOccluded
Mouth is occluded flag.
Definition: IMouthEstimator.h:48
fsdk::MouthEstimationExtended::isOpened
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:62
fsdk::SmileTypeScores
Scores of smile type. Probability scores are defined in [0,1] range. Scores in this struct sum up to ...
Definition: IMouthEstimator.h:30
fsdk::MouthEstimationExtended::smileTypeScores
SmileTypeScores smileTypeScores
Smile types scores (.
Definition: IMouthEstimator.h:66
fsdk::IMouthEstimator
Mouth estimator interface.
Definition: IMouthEstimator.h:74
fsdk::SmileType::None
No smile.
fsdk::MouthEstimation::opened
float opened
mouth opened score
Definition: IMouthEstimator.h:43
fsdk::Image
Image.
Definition: Image.h:38
fsdk::MouthEstimationExtended::smileType
SmileType smileType
Contains smile type if person "isSmiling" (.
Definition: IMouthEstimator.h:67
fsdk::MouthEstimationExtended::occluded
float occluded
mouth is occluded score
Definition: IMouthEstimator.h:61
fsdk::MouthEstimationExtended::smile
float smile
person is smiling score
Definition: IMouthEstimator.h:60
fsdk::MouthEstimation::isOpened
bool isOpened
Mouth is opened flag.
Definition: IMouthEstimator.h:46
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:47
fsdk::SmileType
SmileType
MouthEstimationExtended smile type enum. This enum contains all possible smile types.
Definition: IMouthEstimator.h:18