Face Engine SDK  4.9.0
A face detection, recognition and tracking engine.
 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  };
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
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Infra red liveness estimator interface.
Definition: ILivenessIREstimator.h:27
Common data types and structures.
Object system types and interfaces.
Common SDK error codes.
IR estimation structure. Each score in normalized [0, 1] range, isReal shows real person or not...
Definition: ILivenessIREstimator.h:18
Base strong reference counted object interface.
Definition: IRefCounted.h:36
virtual Result< FSDKError > estimate(const Image &irWarp, IREstimation &irEstimation) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Image.
Definition: Image.h:38
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.
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13