Face Engine SDK  5.17.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
INIRLivenessEstimator.h
1 #pragma once
2 
3 #include <fsdk/FSDKError.h>
4 #include <fsdk/IObject.h>
5 #include <fsdk/Types.h>
6 
7 namespace fsdk {
8 
9 #ifndef DOXYGEN_SHOULD_SKIP_THIS
10  DECLARE_SMARTPTR(INIRLivenessEstimator);
11 #endif
12 
23  enum class NIRLivenessMode {
24  Default, // Specified in config file.
25  M1, // M1.
26  M2 // M2.
27  };
28 
29 
36  enum class State {
37  Real = 0,
38  Fake = 1,
39  Unknown
40  };
41 
42  float score;
43  State state;
44  };
45 
60  virtual Result<FSDKError> estimate(const Image& warp, NIRLivenessEstimation& irEstimation) const noexcept = 0;
61 
72  virtual Result<FSDKError>
73  estimate(Span<const Image> warps, Span<NIRLivenessEstimation> irEstimation) const noexcept = 0;
74 
85  virtual Result<FSDKError>
86  validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
87  };
89 } // namespace fsdk
State
Definition: INIRLivenessEstimator.h:36
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
Infra red liveness estimator interface.
Definition: INIRLivenessEstimator.h:51
NIR Liveness estimation structure. Each score in normalized [0, 1] range, state shows real person or ...
Definition: INIRLivenessEstimator.h:35
The person on image is real.
Object system types and interfaces.
NIRLivenessMode
NIRLiveness estimation mode. Currently, available values to select the estimation mode are: Default...
Definition: INIRLivenessEstimator.h:23
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
Image.
Definition: Image.h:38
virtual Result< FSDKError > estimate(const Image &warp, NIRLivenessEstimation &irEstimation) const noexcept=0
Check whether or not infrared warp corresponds to the real person.
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.
The person on image is fake.
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14