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

IDepthLivenessEstimator.h
1 #pragma once
2
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/IObject.h>
5 #include <fsdk/Types.h>
6
7 namespace fsdk {
8
9 #ifndef DOXYGEN_SHOULD_SKIP_THIS
10 DECLARE_SMARTPTR(IDepthLivenessEstimator);
11 #endif
12
21 struct DepthLivenessEstimation {
22 float score;
23 bool isReal;
24 };
25
31 struct IDepthLivenessEstimator : IRefCounted {
40 virtual Result<FSDKError> estimate(const Image& depth, DepthLivenessEstimation& out) const noexcept = 0;
41
52 virtual Result<FSDKError>
53 estimate(Span<const Image> depths, Span<DepthLivenessEstimation> outs) const noexcept = 0;
54
65 virtual Result<FSDKError>
66 validate(Span<const Image> depths, Span<Result<FSDKError>> errors) const noexcept = 0;
67 };
68
70 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::IDepthLivenessEstimator
Depth estimator interface.
Definition: IDepthLivenessEstimator.h:31
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Types.h
Common data types and structures.
fsdk::IDepthLivenessEstimator::estimate
virtual Result< FSDKError > estimate(const Image &depth, DepthLivenessEstimation &out) const noexcept=0
Check whether or not depth map corresponds to the real person.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::DepthLivenessEstimation::isReal
bool isReal
boolean flag that indicates whether a person is real.
Definition: IDepthLivenessEstimator.h:23
fsdk::DepthLivenessEstimation
Depth estimator output structure.
Definition: IDepthLivenessEstimator.h:21
fsdk::IDepthLivenessEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > depths, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple depth maps of face warps in a single function call.
fsdk::Image
Image.
Definition: Image.h:38
fsdk::DepthLivenessEstimation::score
float score
confidence score in [0,1] range. "1" means absolute confidence that the person is real...
Definition: IDepthLivenessEstimator.h:22
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14