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

ILivenessDepthEstimator.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(ILivenessDepthEstimator);
12 #endif
13
25 struct DepthRange {
26 float min = 600.f;
27 float max = 3000.f;
28
32 bool isOk() const noexcept {
33 return ((min >= 0.f) && (max > min));
34 }
35 };
36
40 struct DepthEstimation {
41 float score;
42 bool isReal;
43 };
44
51 struct ILivenessDepthEstimator : IRefCounted {
60 virtual Result<FSDKError> estimate(const Image& depth, DepthEstimation& out) const noexcept = 0;
61 };
62
64 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk::DepthEstimation::isReal
bool isReal
boolean flag that indicates whether a person is real.
Definition: ILivenessDepthEstimator.h:42
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Types.h
Common data types and structures.
fsdk::DepthRange
Depth range configuration structure in millimeters.
Definition: ILivenessDepthEstimator.h:25
fsdk::DepthRange::isOk
bool isOk() const noexcept
Definition: ILivenessDepthEstimator.h:32
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::DepthRange::min
float min
Minimum distance.
Definition: ILivenessDepthEstimator.h:26
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::ILivenessDepthEstimator::estimate
virtual Result< FSDKError > estimate(const Image &depth, DepthEstimation &out) const noexcept=0
Check whether or not depth map corresponds to the real person.
fsdk::DepthEstimation::score
float score
confidence score in [0,1] range. "1" means absolute confidence that the person is real...
Definition: ILivenessDepthEstimator.h:41
fsdk::ILivenessDepthEstimator
Depth estimator interface.
Definition: ILivenessDepthEstimator.h:51
fsdk::Image
Image.
Definition: Image.h:38
fsdk::DepthEstimation
Depth estimator output structure.
Definition: ILivenessDepthEstimator.h:40
fsdk::DepthRange::max
float max
Maximum distance.
Definition: ILivenessDepthEstimator.h:27