| Face Engine SDK 4.7.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 {
38 virtual ResultValue<FSDKError, float>
39 FSDK_DEPRECATED("estimate by irWarp is deprecated since v.3.6.5, "
40 "use estimate(const Image& irWarp, IREstimation& irEstimation) instead")
41 estimate(const Image& irWarp) const noexcept = 0;
42
52 virtual Result<FSDKError>
53 FSDK_DEPRECATED("estimate by irWarps[] and scores[] is deprecated since v.3.6.5"
54 ", use estimate(Span<const Image> irWarps, Span<IREstimation> irEstimations) "
55 "instead")
56 estimate(
57 const Image irWarps[],
58 const uint32_t batchSize,
59 float scores[]) const noexcept = 0;
60
68 virtual Result<FSDKError>
69 FSDK_DEPRECATED("estimate by Image irWarps[], batchSize and irEstimation[] "
70 "is deprecated since v.3.6.5, use "
71 "estimate(Span<const Image> irWarps, Span<IREstimation> irEstimations) instead)"
72 " instead")
73 estimate(
74 const Image irWarps[],
75 const uint32_t batchSize,
76 IREstimation irEstimation[]) const noexcept = 0;
77
84 virtual Result<FSDKError>
85 estimate(
86 const Image& irWarp,
87 IREstimation& irEstimation) const noexcept = 0;
88
98 virtual Result<FSDKError>
99 estimate(
100 Span<const Image> irWarps,
101 Span<IREstimation> irEstimations) const noexcept = 0;
102 };
103
104 } // 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< FSDKError >
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
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::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ILivenessIREstimator::FSDK_DEPRECATED
virtual ResultValue< FSDKError, float > FSDK_DEPRECATED("estimate by irWarp is deprecated since v.3.6.5, ""use estimate(const Image& irWarp, IREstimation& irEstimation) instead") estimate(const Image &irWarp) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13