Face Engine SDK  5.3.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
8 namespace fsdk {
9 
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11  DECLARE_SMARTPTR(ILivenessFPREstimator);
12 #endif
13 
21  float replayScore;
22  float phoneScore;
24  float totalScore;
25  bool isReal;
26  };
27 
33 
43  const Image& image,
44  const Detection& detection,
45  const fsdk::Landmarks5& landmarks5,
46  bool useJpegCompression,
47  LivenessFPREstimation& estimation) const noexcept = 0;
48 
49  virtual fsdk::Image getCompressedWarp() const = 0;
50  virtual void setCompressedWarp(const fsdk::Image& warp) const = 0;
51  virtual void clearCompessedWarp() const = 0;
52  };
53 
54 }
FPR Liveness estimator interface.
Definition: ILivenessFPREstimator.h:32
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
float phoneScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:22
Common data types and structures.
Face landmarks template structure.
Definition: Landmarks.h:20
Object system types and interfaces.
Common SDK error codes.
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFPREstimator.h:25
Base strong reference counted object interface.
Definition: IRefCounted.h:36
float totalScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:24
float flyingFacesScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:23
Liveness FPR estimation output.
Definition: ILivenessFPREstimator.h:20
float replayScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:21
Image.
Definition: Image.h:37
virtual fsdk::Result< fsdk::FSDKError > estimate(const Image &image, const Detection &detection, const fsdk::Landmarks5 &landmarks5, bool useJpegCompression, LivenessFPREstimation &estimation) const noexcept=0
Helps to check if person is real or not.
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10