Face Engine SDK 5.35.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
IEyeEstimator.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#include <fsdk/Types/SensorType.h>
8
9namespace fsdk {
10
11#ifndef DOXYGEN_SHOULD_SKIP_THIS
12 DECLARE_SMARTPTR(IEyeEstimator);
13#endif
14
56
62 struct EyesRects {
63 Rect leftEyeRect;
64 Rect rightEyeRect;
65 };
66
67 EyesRects cropByLandmarks5(const Image& warp, const Landmarks5& landmarks5);
68
69 EyeCropper::EyesRects cropByLandmarks68(const Image& warp, const Landmarks68& landmarks68);
70 };
71
98 const Image& warp,
99 const EyeCropper::EyesRects& eyeRects,
100 EyesEstimation& eyesEstimation) const noexcept = 0;
101
118 Span<const Image> warps,
120 Span<EyesEstimation> eyesEstimations) const noexcept = 0;
121
135 Span<const Image> warps,
137 Span<Result<FSDKError>> errors) const noexcept = 0;
138 };
139
141} // namespace fsdk
#define FSDK_API
Dummy.
Definition Def.h:27
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:70
SDK namespace.
Definition IAGSEstimator.h:8
Definition IEyeEstimator.h:62
EyeCropper is a helper structure for IEyeEstimator interface Methods of this structure crop an input ...
Definition IEyeEstimator.h:61
Eyes attribute structure.
Definition IEyeEstimator.h:28
IrisLandmarks iris
Iris landmarks.
Definition IEyeEstimator.h:49
EyelidLandmarks eyelid
Eyelid landmarks.
Definition IEyeEstimator.h:50
State state
State of an eye.
Definition IEyeEstimator.h:47
State
Enumeration of possible eye states.
Definition IEyeEstimator.h:32
@ Occluded
Eye is concealed, or landmark passed to estimator doesn't point to an eye.
static constexpr uint64_t eyelidLandmarksCount
Eyelid landmarks amount.
Definition IEyeEstimator.h:39
static constexpr uint64_t irisLandmarksCount
Iris landmarks amount.
Definition IEyeEstimator.h:38
Eyes estimation output.
Definition IEyeEstimator.h:24
EyeAttributes rightEye
Right eye attributes.
Definition IEyeEstimator.h:54
EyeAttributes leftEye
Left eye attributes.
Definition IEyeEstimator.h:53
Eye estimator interface.
Definition IEyeEstimator.h:82
virtual Result< FSDKError > validate(Span< const Image > warps, Span< const EyeCropper::EyesRects > eyeRects, Span< Result< FSDKError > > errors) const noexcept=0
Validate input of multiple frames in a single function call.
virtual Result< FSDKError > estimate(Span< const Image > warps, Span< const EyeCropper::EyesRects > eyeRects, Span< EyesEstimation > eyesEstimations) const noexcept=0
Estimate the attributes of multiple warped images in a single estimate function call.
virtual Result< FSDKError > estimate(const Image &warp, const EyeCropper::EyesRects &eyeRects, EyesEstimation &eyesEstimation) const noexcept=0
Estimate the attributes.
Base strong reference counted object interface.
Definition IRefCounted.h:37
Image.
Definition Image.h:38
A structure that encapsulates an action result enumeration.
Definition Result.h:27