| Face Engine SDK 5.31.2 A face detection, recognition and tracking engine.

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
38 struct FacialHairEstimation {
39 FacialHair result;
40 // scores
41 float noHairScore;
42 float stubbleScore;
43 float mustacheScore;
44 float beardScore;
45 };
46
51 struct IFacialHairEstimator : IRefCounted {
60 virtual Result<FSDKError>
61 estimate(const Image& warp, FacialHairEstimation& estimation) const noexcept = 0;
62
73 virtual Result<FSDKError>
74 estimate(Span<const Image> warps, Span<FacialHairEstimation> estimations) const noexcept = 0;
75
86 virtual Result<FSDKError>
87 validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
88 };
89
91 } // namespace fsdk
fsdk::FacialHairEstimation::result
FacialHair result
estimation result (
Definition: IFacialHairEstimator.h:39
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::FacialHairEstimation::beardScore
float beardScore
beard on the face score
Definition: IFacialHairEstimator.h:44
IObject.h
Object system types and interfaces.
fsdk::FacialHair::NoHair
no hair on the face
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::FacialHairEstimation::stubbleScore
float stubbleScore
stubble on the face score
Definition: IFacialHairEstimator.h:42
fsdk::FacialHair::Stubble
stubble on the face
fsdk::IFacialHairEstimator::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.
fsdk::FacialHair::Mustache
mustache on the face
fsdk::IFacialHairEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, FacialHairEstimation &estimation) const noexcept=0
Estimate Facial Hair probabilities.
fsdk::Image
Image.
Definition: Image.h:38
fsdk::FacialHairEstimation::mustacheScore
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:43
fsdk::FacialHair::Beard
beard on the face
fsdk::FacialHair
FacialHair
FacialHair estimator output enum. This enum contains all possible estimation results.
Definition: IFacialHairEstimator.h:25
fsdk::IFacialHairEstimator
FacialHair estimator interface.
Definition: IFacialHairEstimator.h:51
fsdk::FacialHairEstimation::noHairScore
float noHairScore
no hair on the face score
Definition: IFacialHairEstimator.h:41
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::FacialHairEstimation
FacialHair estimator output structure. This structure contains the result of estimation (...
Definition: IFacialHairEstimator.h:38