Face Engine SDK  4.6.0
A face detection, recognition and tracking engine.
ILivenessFPREstimator.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 #include <fsdk/Face.h>
8 
9 namespace fsdk {
10 
11 #ifndef DOXYGEN_SHOULD_SKIP_THIS
12  DECLARE_SMARTPTR(ILivenessFPREstimator);
13 #endif
14 
22  float replayScore;
23  float phoneScore;
25  float totalScore;
26  bool isReal;
27  };
28 
34 
44  const fsdk::Face& face,
45  bool useJpegCompression,
46  LivenessFPREstimation& estimation) const noexcept = 0;
47 
48  virtual fsdk::Image getCompressedWarp() const = 0;
49  virtual void setCompressedWarp(const fsdk::Image& warp) const = 0;
50  virtual void clearCompessedWarp() const = 0;
51  };
52 
53 }
FPR Liveness estimator interface.
Definition: ILivenessFPREstimator.h:33
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
SDK namespace.
Definition: IAGSEstimator.h:8
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
float phoneScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:23
Common data types and structures.
virtual fsdk::Result< fsdk::FSDKError > estimate(const fsdk::Face &face, bool useJpegCompression, LivenessFPREstimation &estimation) const noexcept=0
Helps to check if person is real or not.
Object system types and interfaces.
Common SDK error codes.
Definition: Face.h:9
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFPREstimator.h:26
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float totalScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:25
float flyingFacesScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:24
Liveness FPR estimation output.
Definition: ILivenessFPREstimator.h:21
float replayScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:22
Image.
Definition: Image.h:37