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
IRedEyeEstimator.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(IRedEyeEstimator);
12 #endif
13 
22  enum class RedEyeStatus : uint8_t {
23  NonRed,
24  Red,
25  };
26 
37  float score;
38  };
39 
42  };
43 
60  const Image& warp,
61  const Landmarks5& landmarks5Transformed,
62  RedEyeEstimation& estimation) const noexcept = 0;
63 
76  Span<const Image> warps,
77  Span<const Landmarks5> landmarks5Transformed,
78  Span<RedEyeEstimation> estimations) const noexcept = 0;
79 
91  virtual Result<FSDKError>
92  validate(
93  Span<const Image> warps,
94  Span<const Landmarks5> landmarks5Transformed,
95  Span<Result<FSDKError>> errors) const noexcept = 0;
96 
97  };
99 } // namespace fsdk
virtual Result< FSDKError > estimate(const Image &warp, const Landmarks5 &landmarks5Transformed, RedEyeEstimation &estimation) const noexcept=0
Estimates whether red eyes in a photo or not.
#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
Common data types and structures.
Face landmarks template structure.
Definition: Landmarks.h:21
Object system types and interfaces.
Red eye estimation output.
Definition: IRedEyeEstimator.h:31
RedEyeStatus
Enumeration of possible red eye statuses.
Definition: IRedEyeEstimator.h:22
RedEyeAttributes rightEye
Right eye attributes.
Definition: IRedEyeEstimator.h:41
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual Result< FSDKError > validate(Span< const Image > warps, Span< const Landmarks5 > landmarks5Transformed, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
RedEyeStatus status
Status of an eye.
Definition: IRedEyeEstimator.h:36
Image.
Definition: Image.h:39
Red eye estimator interface.
Definition: IRedEyeEstimator.h:49
Eyes attribute structure.
Definition: IRedEyeEstimator.h:35
float score
Score, numerical value in range [0,1].
Definition: IRedEyeEstimator.h:37
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
RedEyeAttributes leftEye
Left eye attributes.
Definition: IRedEyeEstimator.h:40