Face Engine SDK  5.23.1
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 
22  float score;
23  bool isReal;
24  };
25 
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
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition: Span.h:14
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::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.
fsdk::IDepthLivenessEstimator::estimate
virtual Result< FSDKError > estimate(Span< const Image > depths, Span< DepthLivenessEstimation > outs) const noexcept=0
Check whether several depth maps correspond to real persons.
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
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
Depth estimator interface.
Definition: IDepthLivenessEstimator.h:31
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::DepthLivenessEstimation::score
float score
confidence score in [0,1] range. "1" means absolute confidence that the person is real.
Definition: IDepthLivenessEstimator.h:22