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

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
35 struct FacialHairEstimation {
36 FacialHair result;
37 // scores
38 float noHairScore;
39 float stubbleScore;
40 float mustacheScore;
41 float beardScore;
42 };
43
48 struct IFacialHairEstimator : IRefCounted {
49
56 virtual Result<FSDKError>
57 estimate(
58 const Image& warp,
59 FacialHairEstimation& estimation) const noexcept = 0;
60
69 virtual Result<FSDKError>
70 estimate(
71 Span<const Image> warps,
72 Span<FacialHairEstimation> estimations) const noexcept = 0;
73 };
74
75 } // namespace fsdk
fsdk::FacialHairEstimation::result
FacialHair result
estimation result (
Definition: IFacialHairEstimator.h:36
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::Result< FSDKError >
fsdk::FacialHairEstimation::beardScore
float beardScore
beard on the face score
Definition: IFacialHairEstimator.h:41
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::FacialHairEstimation::stubbleScore
float stubbleScore
stubble on the face score
Definition: IFacialHairEstimator.h:39
fsdk::FacialHair
FacialHair
FacialHair estimator output enum. This enum contains all possible estimation results.
Definition: IFacialHairEstimator.h:22
fsdk::IFacialHairEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, FacialHairEstimation &estimation) const noexcept=0
Estimate Facial Hair probabilities.
fsdk::FacialHair::NoHair
no hair on the face
fsdk::Image
Image.
Definition: Image.h:38
fsdk::FacialHairEstimation::mustacheScore
float mustacheScore
mustache on the face score
Definition: IFacialHairEstimator.h:40
fsdk::IFacialHairEstimator
FacialHair estimator interface.
Definition: IFacialHairEstimator.h:48
fsdk::FacialHairEstimation::noHairScore
float noHairScore
no hair on the face score
Definition: IFacialHairEstimator.h:38
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
fsdk::FacialHair::Beard
beard on the face
fsdk::FacialHair::Stubble
stubble on the face
IRefCounted.h
Reference counted object interface.
fsdk::FacialHairEstimation
FacialHair estimator output structure. This structure contains the result of estimation (...
Definition: IFacialHairEstimator.h:35
fsdk::FacialHair::Mustache
mustache on the face