| Face Engine SDK 4.7.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
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
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IGazeEstimator);
12 #endif
13
19 struct GazeEstimation {
20 float yaw;
21 float pitch;
22 };
23
32 struct IGazeEstimator: IRefCounted {
41 virtual fsdk::Result<fsdk::FSDKError> estimate(
42 const fsdk::Image& warp,
43 const fsdk::Landmarks5& landmarks5Transformed,
44 fsdk::GazeEstimation& eyeAngles) const noexcept = 0;
45
56 virtual fsdk::Result<fsdk::FSDKError> estimate(
57 const fsdk::Span<const fsdk::Image> warps,
58 const fsdk::Span<const fsdk::Landmarks5> landmarks5Transformed,
59 fsdk::Span<fsdk::GazeEstimation> eyeAngles) const noexcept = 0;
60
66 virtual fsdk::Point2i getFaceCenter(const fsdk::Landmarks5& landmarks5) const noexcept = 0;
67 };
68
69 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::IGazeEstimator
Gaze estimator interface.
Definition: IGazeEstimator.h:32
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
fsdk::Landmarks
Face landmarks template structure.
Definition: Landmarks.h:18
fsdk::GazeEstimation::pitch
float pitch
Eye pitch angle.
Definition: IGazeEstimator.h:21
IObject.h
Object system types and interfaces.
fsdk::IGazeEstimator::getFaceCenter
virtual fsdk::Point2i getFaceCenter(const fsdk::Landmarks5 &landmarks5) const noexcept=0
Returns the special center of face for calculating of gaze projection.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::GazeEstimation::yaw
float yaw
Eye yaw angle.
Definition: IGazeEstimator.h:20
fsdk::GazeEstimation
Gaze estimation output.
Definition: IGazeEstimator.h:19
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IGazeEstimator::estimate
virtual fsdk::Result< fsdk::FSDKError > estimate(const fsdk::Image &warp, const fsdk::Landmarks5 &landmarks5Transformed, fsdk::GazeEstimation &eyeAngles) const noexcept=0
Estimates the eye angles.
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
fsdk::Vector2< int >