| Face Engine SDK 5.33.0 A face detection, recognition and tracking engine.

Loading...
Searching...
No Matches
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
25 struct GazeEstimation {
26 float yaw;
27 float pitch;
28 };
29
38 struct IGazeEstimator : IRefCounted {
48 virtual Result<FSDKError> estimate(
49 const Image& warp,
50 const Landmarks5& landmarks5Transformed,
51 GazeEstimation& eyeAngles) const noexcept = 0;
52
64 virtual Result<FSDKError> estimate(
65 Span<const Image> warps,
66 Span<const Landmarks5> landmarks5Transformed,
67 Span<GazeEstimation> eyeAngles) const noexcept = 0;
68
80 virtual Result<FSDKError> validate(
81 Span<const Image> warps,
82 Span<const Landmarks5> landmarks5Transformed,
83 Span<Result<FSDKError>> errors) const noexcept = 0;
84
91 virtual Point2i getFaceCenter(const Landmarks5& landmarks5) const noexcept = 0;
92 };
93
95} // namespace fsdk
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
fsdk
SDK namespace.
Definition IAGSEstimator.h:8
fsdk::GazeEstimation
Gaze estimation output.
Definition IGazeEstimator.h:25
fsdk::GazeEstimation::pitch
float pitch
Eye pitch angle.
Definition IGazeEstimator.h:27
fsdk::GazeEstimation::yaw
float yaw
Eye yaw angle.
Definition IGazeEstimator.h:26
fsdk::IGazeEstimator
Gaze estimator interface.
Definition IGazeEstimator.h:38
fsdk::IGazeEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, const Landmarks5 &landmarks5Transformed, GazeEstimation &eyeAngles) const noexcept=0
Estimates the eye angles.
fsdk::IGazeEstimator::validate
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.
fsdk::IGazeEstimator::estimate
virtual Result< FSDKError > estimate(Span< const Image > warps, Span< const Landmarks5 > landmarks5Transformed, Span< GazeEstimation > eyeAngles) const noexcept=0
Estimates eye angles of multiple frames in a single estimate function call.
fsdk::IGazeEstimator::getFaceCenter
virtual Point2i getFaceCenter(const Landmarks5 &landmarks5) const noexcept=0
Returns the special center of face for calculating of gaze projection.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition IRefCounted.h:37
fsdk::Image
Image.
Definition Image.h:38
fsdk::Landmarks
Face landmarks template structure.
Definition Landmarks.h:23
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition Result.h:27
fsdk::Vector2< int >