Face Engine SDK  5.14.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/IObject.h>
4 #include <fsdk/FSDKError.h>
5 
6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Result.h>
8 #include <fsdk/Types/Span.h>
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(IFacialHairEstimator);
14 #endif
15 
25  enum class FacialHair {
26  NoHair = 0,
27  Stubble,
28  Mustache,
29  Beard
30  };
31 
40  // scores
41  float noHairScore;
42  float stubbleScore;
43  float mustacheScore;
44  float beardScore;
45  };
46 
60  virtual Result<FSDKError>
61  estimate(
62  const Image& warp,
63  FacialHairEstimation& estimation) const noexcept = 0;
64 
75  virtual Result<FSDKError>
76  estimate(
77  Span<const Image> warps,
78  Span<FacialHairEstimation> estimations) const noexcept = 0;
79 
90  virtual Result<FSDKError>
91  validate(
92  Span<const Image> warps,
93  Span<Result<FSDKError>> errors) const noexcept = 0;
94  };
96 } // namespace fsdk
FacialHair result
estimation result (
Definition: IFacialHairEstimator.h:39
#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
float beardScore
beard on the face score
Definition: IFacialHairEstimator.h:44
Object system types and interfaces.
no hair on the face
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float stubbleScore
stubble on the face score
Definition: IFacialHairEstimator.h:42
stubble on the face
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.
mustache on the face
virtual Result< FSDKError > estimate(const Image &warp, FacialHairEstimation &estimation) const noexcept=0
Estimate Facial Hair probabilities.
Image.
Definition: Image.h:39
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:43
beard on the face
FacialHair
FacialHair estimator output enum. This enum contains all possible estimation results.
Definition: IFacialHairEstimator.h:25
FacialHair estimator interface.
Definition: IFacialHairEstimator.h:51
float noHairScore
no hair on the face score
Definition: IFacialHairEstimator.h:41
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
FacialHair estimator output structure. This structure contains the result of estimation (...
Definition: IFacialHairEstimator.h:38