![]() |
Face Engine SDK
5.17.0
A face detection, recognition and tracking engine.
|
00001 #pragma once 00002 00003 #include <fsdk/Def.h> 00004 #include <fsdk/FSDKError.h> 00005 #include <fsdk/IRefCounted.h> 00006 #include <fsdk/Types/Detection.h> 00007 #include <fsdk/Types/Image.h> 00008 #include <fsdk/Types/Landmarks.h> 00009 #include <fsdk/Types/Ref.h> 00010 #include <fsdk/Types/Result.h> 00011 #include <fsdk/Types/Span.h> 00012 00013 namespace fsdk { 00014 00015 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00016 DECLARE_SMARTPTR(ILivenessDepthRGBEstimator); 00017 #endif 00018 00027 struct DepthRGBEstimation { 00030 float score; 00032 bool isReal; 00033 }; 00034 00041 struct ILivenessDepthRGBEstimator : IRefCounted { 00054 virtual Result<FSDKError> estimate( 00055 const Image& depth, 00056 const Image& rgb, 00057 const Detection& detection, 00058 const Landmarks5& landmarks5, 00059 DepthRGBEstimation& out) const noexcept = 0; 00060 00076 virtual Result<FSDKError> estimate( 00077 Span<const Image> depths, 00078 Span<const Image> rgbs, 00079 Span<const Detection> detections, 00080 Span<const Landmarks5> landmarks5, 00081 Span<DepthRGBEstimation> outs) const noexcept = 0; 00082 00096 virtual Result<FSDKError> 00097 validate( 00098 Span<const Image> depths, 00099 Span<const Image> rgbs, 00100 Span<const Detection> detections, 00101 Span<const Landmarks5> landmarks5, 00102 Span<Result<FSDKError>> errors) const noexcept = 0; 00103 }; 00105 } // namespace fsdk