Face Engine SDK 5.25.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
IDepthLivenessEstimator.h
1#pragma once
2
3#include <fsdk/FSDKError.h>
4#include <fsdk/IObject.h>
5#include <fsdk/Types.h>
6
7namespace 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>
54
65 virtual Result<FSDKError>
66 validate(Span<const Image> depths, Span<Result<FSDKError>> errors) const noexcept = 0;
67 };
68
70} // namespace fsdk
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition Span.h:14
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
SDK namespace.
Definition IAGSEstimator.h:8
Depth estimator output structure.
Definition IDepthLivenessEstimator.h:21
float score
confidence score in [0,1] range. "1" means absolute confidence that the person is real.
Definition IDepthLivenessEstimator.h:22
bool isReal
boolean flag that indicates whether a person is real.
Definition IDepthLivenessEstimator.h:23
Depth estimator interface.
Definition IDepthLivenessEstimator.h:31
virtual Result< FSDKError > estimate(const Image &depth, DepthLivenessEstimation &out) const noexcept=0
Check whether or not depth map corresponds to the real person.
virtual Result< FSDKError > estimate(Span< const Image > depths, Span< DepthLivenessEstimation > outs) const noexcept=0
Check whether several depth maps correspond to real persons.
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.
Base strong reference counted object interface.
Definition IRefCounted.h:37
Image.
Definition Image.h:38
A structure that encapsulates an action result enumeration.
Definition Result.h:27