| Face Engine SDK 5.31.2 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
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(ILivenessFPREstimator);
12 #endif
13
25 struct LivenessFPREstimation {
26 float replayScore;
27 float phoneScore;
28 float flyingFacesScore;
29 float totalScore;
30 bool isReal;
31 };
32
37 struct ILivenessFPREstimator : IRefCounted {
51 virtual Result<FSDKError> estimate(
52 const Image& image,
53 const Detection& detection,
54 const Landmarks5& landmarks5,
55 bool useJpegCompression,
56 LivenessFPREstimation& estimation) const noexcept = 0;
57
58 virtual Image getCompressedWarp() const = 0;
59 virtual void setCompressedWarp(const Image& warp) const = 0;
60 virtual void clearCompessedWarp() const = 0;
61 };
62
64 } // namespace fsdk
fsdk::ILivenessFPREstimator
FPR Liveness estimator interface.
Definition: ILivenessFPREstimator.h:37
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::LivenessFPREstimation::phoneScore
float phoneScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:27
Types.h
Common data types and structures.
fsdk::Landmarks
Face landmarks template structure.
Definition: Landmarks.h:23
fsdk::ILivenessFPREstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, const Landmarks5 &landmarks5, bool useJpegCompression, LivenessFPREstimation &estimation) const noexcept=0
Helps to check if person is real or not.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::LivenessFPREstimation::isReal
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFPREstimator.h:30
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::LivenessFPREstimation::totalScore
float totalScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:29
fsdk::LivenessFPREstimation::flyingFacesScore
float flyingFacesScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:28
fsdk::LivenessFPREstimation
Liveness FPR estimation output.
Definition: ILivenessFPREstimator.h:25
fsdk::LivenessFPREstimation::replayScore
float replayScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:26
fsdk::Image
Image.
Definition: Image.h:38
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10