Face Engine SDK  5.13.0
A face detection, recognition and tracking engine.
IGazeEstimator.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 
9 namespace fsdk {
10 
11 #ifndef DOXYGEN_SHOULD_SKIP_THIS
12  DECLARE_SMARTPTR(IGazeEstimator);
13 #endif
14 
20  struct GazeEstimation {
21  float yaw;
22  float pitch;
23  };
24 
44  const Image& warp,
45  const Landmarks5& landmarks5Transformed,
46  GazeEstimation& eyeAngles) const noexcept = 0;
47 
60  Span<const Image> warps,
61  Span<const Landmarks5> landmarks5Transformed,
62  Span<GazeEstimation> eyeAngles) const noexcept = 0;
63 
75  virtual Result<FSDKError>
76  validate(
77  Span<const Image> warps,
78  Span<const Landmarks5> landmarks5Transformed,
79  Span<Result<FSDKError>> errors) const noexcept = 0;
80 
87  virtual Point2i getFaceCenter(const Landmarks5& landmarks5) const noexcept = 0;
88  };
89 
90 } // namespace fsdk
virtual Result< FSDKError > estimate(const Image &warp, const Landmarks5 &landmarks5Transformed, GazeEstimation &eyeAngles) const noexcept=0
Estimates the eye angles.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
SDK namespace.
Definition: IAGSEstimator.h:8
Gaze estimator interface.
Definition: IGazeEstimator.h:33
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
float pitch
Eye pitch angle.
Definition: IGazeEstimator.h:22
Object system types and interfaces.
Common SDK error codes.
virtual Result< FSDKError > validate(Span< const Image > warps, Span< const Landmarks5 > landmarks5Transformed, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float yaw
Eye yaw angle.
Definition: IGazeEstimator.h:21
Gaze estimation output.
Definition: IGazeEstimator.h:20
Image.
Definition: Image.h:38
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
virtual Point2i getFaceCenter(const Landmarks5 &landmarks5) const noexcept=0
Returns the special center of face for calculating of gaze projection.