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

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 namespace fsdk {
8
9 #ifndef DOXYGEN_SHOULD_SKIP_THIS
10 DECLARE_SMARTPTR(ILivenessIREstimator);
11 #endif
12
18 struct IREstimation {
19 float score;
20 bool isReal;
21 };
27 struct ILivenessIREstimator : IRefCounted {
28
35 virtual Result<FSDKError> estimate(
36 const Image& irWarp,
37 IREstimation& irEstimation) const noexcept = 0;
38
45 virtual Result<FSDKError>
46 estimate(
47 Span<const Image> irWarps,
48 Span<IREstimation> irEstimation) const noexcept = 0;
49
57 virtual Result<FSDKError>
58 validate(
59 Span<const Image> warps,
60 Span<Result<FSDKError>> errors) const noexcept = 0;
61 };
62
63 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::ILivenessIREstimator
Infra red liveness estimator interface.
Definition: ILivenessIREstimator.h:27
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
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:18
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::ILivenessIREstimator::estimate
virtual Result< FSDKError > estimate(const Image &irWarp, IREstimation &irEstimation) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
fsdk::Image
Image.
Definition: Image.h:37
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14