Face Engine SDK  5.23.1
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
Depth estimator interface.
Definition: IDepthLivenessEstimator.h:31
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
virtual Result< FSDKError > estimate(const Image &depth, DepthLivenessEstimation &out) const noexcept=0
Check whether or not depth map corresponds to the real person.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
bool isReal
boolean flag that indicates whether a person is real.
Definition: IDepthLivenessEstimator.h:23
Depth estimator output structure.
Definition: IDepthLivenessEstimator.h:21
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.
Image.
Definition: Image.h:38
float score
confidence score in [0,1] range. &quot;1&quot; means absolute confidence that the person is real...
Definition: IDepthLivenessEstimator.h:22
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14