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

ILivenessIREstimator.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(ILivenessIREstimator);
12 #endif
13
24 struct IREstimation {
25 float score;
26 bool isReal;
27 };
28
34 struct ILivenessIREstimator : IRefCounted {
43 virtual Result<FSDKError> estimate(const Image& warp, IREstimation& irEstimation) const noexcept = 0;
44
55 virtual Result<FSDKError>
56 estimate(Span<const Image> warps, Span<IREstimation> irEstimation) const noexcept = 0;
57
68 virtual Result<FSDKError>
69 validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
70 };
71
73 } // 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::ILivenessIREstimator
Infra red liveness estimator interface.
Definition: ILivenessIREstimator.h:34
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Types.h
Common data types and structures.
fsdk::ILivenessIREstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, IREstimation &irEstimation) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::ILivenessIREstimator::validate
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
fsdk::IREstimation
IR estimation structure. Each score in normalized [0, 1] range, isReal shows real person or not...
Definition: ILivenessIREstimator.h:24
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::Image
Image.
Definition: Image.h:38
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14