![]() |
Face Engine SDK
5.26.0
A face detection, recognition and tracking engine.
|
00001 #pragma once 00002 00003 #include <fsdk/IObject.h> 00004 #include <fsdk/FSDKError.h> 00005 #include <fsdk/Optional.h> 00006 #include <fsdk/Types.h> 00007 #include <fsdk/Types/SensorType.h> 00008 00009 namespace fsdk { 00010 00011 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00012 DECLARE_SMARTPTR(IGazeEstimator); 00013 #endif 00014 00025 struct GazeEstimation { 00026 float yaw; 00027 float pitch; 00028 }; 00029 00038 struct IGazeEstimator : IRefCounted { 00048 virtual Result<FSDKError> estimate( 00049 const Image& warp, 00050 const Landmarks5& landmarks5Transformed, 00051 GazeEstimation& eyeAngles) const noexcept = 0; 00052 00064 virtual Result<FSDKError> estimate( 00065 Span<const Image> warps, 00066 Span<const Landmarks5> landmarks5Transformed, 00067 Span<GazeEstimation> eyeAngles) const noexcept = 0; 00068 00080 virtual Result<FSDKError> validate( 00081 Span<const Image> warps, 00082 Span<const Landmarks5> landmarks5Transformed, 00083 Span<Result<FSDKError>> errors) const noexcept = 0; 00084 00091 virtual Point2i getFaceCenter(const Landmarks5& landmarks5) const noexcept = 0; 00092 }; 00093 00095 } // namespace fsdk