Face Engine SDK  4.9.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IFacialHairEstimator.h
1 #pragma once
2 
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/IObject.h>
5 #include <fsdk/IRefCounted.h>
6 
7 #include <fsdk/Types/Image.h>
8 #include <fsdk/Types/Result.h>
9 #include <fsdk/Types/Ref.h>
10 #include <fsdk/Types/Span.h>
11 
12 namespace fsdk {
13 
14 #ifndef DOXYGEN_SHOULD_SKIP_THIS
15  DECLARE_SMARTPTR(IFacialHairEstimator);
16 #endif
17 
22  enum class FacialHair {
23  NoHair = 0,
24  Stubble,
25  Mustache,
26  Beard
27  };
28 
37  // scores
38  float noHairScore;
39  float stubbleScore;
40  float mustacheScore;
41  float beardScore;
42  };
43 
48  enum class Beard {
49  NoBeard = 0,
50  Stubble,
51  ShortBeard,
52  LongBeard
53  };
54 
59  enum class Mustache {
60  NoMustache = 0,
61  Mustache,
62  Stubble
63  };
64 
71  struct BeardEstimation {
73  // scores
74  float noBeardScore;
75  float stubbleScore;
78  };
79 
88  // scores
90  float mustacheScore;
91  float stubbleScore;
92  };
93 
103  };
104 
110 
117  virtual Result<FSDKError> estimate(
118  const Image& warp,
119  FacialHairEstimation& estimation) const noexcept = 0;
120 
127  virtual Result<FSDKError> estimate(
128  const Image& warp,
129  FacialHairEstimationExtended& estimation) const noexcept = 0;
130 
139  virtual Result<FSDKError> estimate(
140  Span<const Image> warps,
141  Span<FacialHairEstimation> estimations) const noexcept = 0;
142 
151  virtual Result<FSDKError> estimate(
152  Span<const Image> warps,
153  Span<FacialHairEstimationExtended> estimations) const noexcept = 0;
154  };
155 
156 } // namespace fsdk
FacialHair result
estimation result (
Definition: IFacialHairEstimator.h:36
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
no beard on the face
float beardScore
beard on the face score
Definition: IFacialHairEstimator.h:41
float longBeardScore
long beard on the face score
Definition: IFacialHairEstimator.h:77
float noMustacheScore
no mustache on the face score
Definition: IFacialHairEstimator.h:89
float stubbleScore
stubble mustache on the face score
Definition: IFacialHairEstimator.h:91
Object system types and interfaces.
FacialHair estimator output structure. This structure contains the result of mustache estimation (...
Definition: IFacialHairEstimator.h:86
Common SDK error codes.
no mustache on the face
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float stubbleScore
stubble on the face score
Definition: IFacialHairEstimator.h:39
FacialHair
FacialHair estimator output enum. This enum contains all possible estimation results.
Definition: IFacialHairEstimator.h:22
float stubbleScore
stubble beard on the face score
Definition: IFacialHairEstimator.h:75
short beard on the face
BeardEstimation beard
beard estimation (
Definition: IFacialHairEstimator.h:101
Beard
FacialHair estimator extended output enum. This enum contains all possible beard estimation results...
Definition: IFacialHairEstimator.h:48
float shortBeardScore
short beard on the face score
Definition: IFacialHairEstimator.h:76
virtual Result< FSDKError > estimate(const Image &warp, FacialHairEstimation &estimation) const noexcept=0
Estimate Facial Hair probabilities.
no hair on the face
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:90
Image.
Definition: Image.h:38
FacialHair estimator output structure. This structure contains the result of extended estimation (...
Definition: IFacialHairEstimator.h:100
Beard result
estimation result (
Definition: IFacialHairEstimator.h:72
long beard on the face
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:40
MustacheEstimation mustache
mustache estimation (
Definition: IFacialHairEstimator.h:102
Mustache
FacialHair estimator extended output enum. This enum contains all possible mustache estimation result...
Definition: IFacialHairEstimator.h:59
FacialHair estimator interface.
Definition: IFacialHairEstimator.h:109
FacialHair estimator output structure. This structure contains the result of beard estimation (...
Definition: IFacialHairEstimator.h:71
float noBeardScore
no beard on the face score
Definition: IFacialHairEstimator.h:74
float noHairScore
no hair on the face score
Definition: IFacialHairEstimator.h:38
Mustache result
estimation result (
Definition: IFacialHairEstimator.h:87
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
stubble on the face
Reference counted object interface.
FacialHair estimator output structure. This structure contains the result of estimation (...
Definition: IFacialHairEstimator.h:35
mustache on the face