Face Engine SDK  5.14.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 
23  struct IREstimation {
24  float score;
25  bool isReal;
26  };
42  const Image& warp,
43  IREstimation& irEstimation) const noexcept = 0;
44 
55  virtual Result<FSDKError>
56  estimate(
57  Span<const Image> warps,
58  Span<IREstimation> irEstimation) const noexcept = 0;
59 
70  virtual Result<FSDKError>
71  validate(
72  Span<const Image> warps,
73  Span<Result<FSDKError>> errors) const noexcept = 0;
74  };
76 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
Infra red liveness estimator interface.
Definition: ILivenessIREstimator.h:32
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
virtual Result< FSDKError > estimate(const Image &warp, IREstimation &irEstimation) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
Object system types and interfaces.
Common SDK error codes.
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.
IR estimation structure. Each score in normalized [0, 1] range, isReal shows real person or not...
Definition: ILivenessIREstimator.h:23
Base strong reference counted object interface.
Definition: IRefCounted.h:36
Image.
Definition: Image.h:39
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14