Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
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
8namespace fsdk {
9
10#ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IMouthEstimator);
12#endif
13
23 enum class SmileType {
24 None,
25 SmileLips,
27 };
28
36 float smileLips;
37 float smileOpen;
38 };
39
48 float opened;
49 float smile;
50 float occluded;
51 bool isOpened;
52 bool isSmiling;
54 };
55
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
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
SmileType
MouthEstimationExtended smile type enum. This enum contains all possible smile types.
Definition IMouthEstimator.h:23
@ SmileLips
regular smile, without teeth's exposed
@ None
No smile.
@ SmileOpen
smile with teeth's exposed
SDK namespace.
Definition IAGSEstimator.h:8
Mouth estimator interface.
Definition IMouthEstimator.h:79
virtual Result< FSDKError > estimate(Span< const Image > warps, Span< MouthEstimationExtended > mouthEstimations) const noexcept=0
Estimate MouthEstimationExtended probabilities of multiple warped images in a single estimate functio...
virtual Result< FSDKError > estimate(Span< const Image > warps, Span< MouthEstimation > mouthEstimations) const noexcept=0
Estimate MouthEstimation probabilities of multiple warped images in a single estimate function call.
virtual Result< FSDKError > estimate(const Image &warp, MouthEstimation &estimation) const noexcept=0
Estimate MouthEstimation probabilities.
virtual Result< FSDKError > estimate(const Image &warp, MouthEstimationExtended &estimation) const noexcept=0
Estimate MouthEstimation probabilities.
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.
Base strong reference counted object interface.
Definition IRefCounted.h:37
Image.
Definition Image.h:38
Extended mouth estimator output structure. Stores flags that indicates which mouth feature is present...
Definition IMouthEstimator.h:63
float occluded
mouth is occluded score
Definition IMouthEstimator.h:66
SmileTypeScores smileTypeScores
Smile types scores (.
Definition IMouthEstimator.h:71
SmileType smileType
Contains smile type if person "isSmiling" (.
Definition IMouthEstimator.h:72
float smile
person is smiling score
Definition IMouthEstimator.h:65
float opened
mouth opened score
Definition IMouthEstimator.h:64
bool isSmiling
Person is smiling flag.
Definition IMouthEstimator.h:68
bool isOpened
Mouth is opened flag.
Definition IMouthEstimator.h:67
bool isOccluded
Mouth is occluded flag.
Definition IMouthEstimator.h:69
Mouth estimator output structure. Stores flags that indicates which mouth feature is present....
Definition IMouthEstimator.h:47
bool isOpened
Mouth is opened flag.
Definition IMouthEstimator.h:51
float occluded
mouth is occluded score
Definition IMouthEstimator.h:50
bool isOccluded
Mouth is occluded flag.
Definition IMouthEstimator.h:53
bool isSmiling
Person is smiling flag.
Definition IMouthEstimator.h:52
float opened
mouth opened score
Definition IMouthEstimator.h:48
float smile
person is smiling score
Definition IMouthEstimator.h:49
A structure that encapsulates an action result enumeration.
Definition Result.h:27
Scores of smile type. Probability scores are defined in [0,1] range. Scores in this struct sum up to ...
Definition IMouthEstimator.h:35
float smileOpen
person is smiling with open mouth score
Definition IMouthEstimator.h:37
float smileLips
person is smiling with lips score
Definition IMouthEstimator.h:36