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
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 
27  enum class GlassesEstimation: uint8_t{
28  NoGlasses,
29  EyeGlasses,
30  SunGlasses,
32  };
33 
47  estimate(const Image& warp) const noexcept = 0;
48 
59  virtual Result<FSDKError>
60  estimate(
61  Span<const Image> warps,
62  Span<GlassesEstimation> glassesEstimations) const noexcept = 0;
63 
74  virtual Result<FSDKError>
75  validate(
76  Span<const Image> warps,
77  Span<Result<FSDKError>> errors) const noexcept = 0;
78  };
80 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
GlassesEstimation
Glasses estimation enum.
Definition: IGlassesEstimator.h:27
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
Person is wearing sunglasses.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Person is wearing eyeglasses.
Glasses estimator interface.
Definition: IGlassesEstimator.h:38
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:25
Person is not wearing glasses.
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.
Image.
Definition: Image.h:39
virtual ResultValue< FSDKError, GlassesEstimation > estimate(const Image &warp) const noexcept=0
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14