| Face Engine SDK 5.2.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
IGlassesEstimator.h
1 #pragma once
2
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IGlassesEstimator);
12 #endif
13
22 enum class GlassesEstimation: uint8_t{
23 NoGlasses,
24 EyeGlasses,
25 SunGlasses,
26 EstimationError
27 };
28
33 struct IGlassesEstimator : IRefCounted {
40 virtual ResultValue<FSDKError, GlassesEstimation>
41 estimate(const Image& warp) const noexcept = 0;
42 };
43
44 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Types.h
Common data types and structures.
fsdk::GlassesEstimation::EyeGlasses
Person is wearing eyeglasses.
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::GlassesEstimation::SunGlasses
Person is wearing sunglasses.
fsdk::IGlassesEstimator
Glasses estimator interface.
Definition: IGlassesEstimator.h:33
fsdk::GlassesEstimation::NoGlasses
Person is not wearing glasses.
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::GlassesEstimation::EstimationError
failed to estimate
fsdk::Image
Image.
Definition: Image.h:37
fsdk::GlassesEstimation
GlassesEstimation
Glasses estimation enum.
Definition: IGlassesEstimator.h:22
fsdk::IGlassesEstimator::estimate
virtual ResultValue< FSDKError, GlassesEstimation > estimate(const Image &warp) const noexcept=0