Face Engine SDK  5.3.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 
20  enum class FacialHair {
21  NoHair = 0,
22  Stubble,
23  Mustache,
24  Beard
25  };
26 
35  // scores
36  float noHairScore;
37  float stubbleScore;
38  float mustacheScore;
39  float beardScore;
40  };
41 
47 
54  virtual Result<FSDKError>
55  estimate(
56  const Image& warp,
57  FacialHairEstimation& estimation) const noexcept = 0;
58 
67  virtual Result<FSDKError>
68  estimate(
69  Span<const Image> warps,
70  Span<FacialHairEstimation> estimations) const noexcept = 0;
71 
79  virtual Result<FSDKError>
80  validate(
81  Span<const Image> warps,
82  Span<Result<FSDKError>> errors) const noexcept = 0;
83  };
84 
85 } // namespace fsdk
FacialHair result
estimation result (
Definition: IFacialHairEstimator.h:34
#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:39
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float stubbleScore
stubble on the face score
Definition: IFacialHairEstimator.h:37
FacialHair
FacialHair estimator output enum. This enum contains all possible estimation results.
Definition: IFacialHairEstimator.h:20
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.
virtual Result< FSDKError > estimate(const Image &warp, FacialHairEstimation &estimation) const noexcept=0
Estimate Facial Hair probabilities.
no hair on the face
Image.
Definition: Image.h:37
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:38
FacialHair estimator interface.
Definition: IFacialHairEstimator.h:46
float noHairScore
no hair on the face score
Definition: IFacialHairEstimator.h:36
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
beard on the face
stubble on the face
FacialHair estimator output structure. This structure contains the result of estimation (...
Definition: IFacialHairEstimator.h:33
mustache on the face