| Face Engine SDK 5.12.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
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(ILivenessFPREstimator);
12 #endif
13
20 struct LivenessFPREstimation {
21 float replayScore;
22 float phoneScore;
23 float flyingFacesScore;
24 float totalScore;
25 bool isReal;
26 };
27
32 struct ILivenessFPREstimator : IRefCounted {
46 virtual Result<FSDKError> estimate(
47 const Image& image,
48 const Detection& detection,
49 const Landmarks5& landmarks5,
50 bool useJpegCompression,
51 LivenessFPREstimation& estimation) const noexcept = 0;
52
53 virtual Image getCompressedWarp() const = 0;
54 virtual void setCompressedWarp(const Image& warp) const = 0;
55 virtual void clearCompessedWarp() const = 0;
56 };
57
58 }
fsdk::ILivenessFPREstimator
FPR Liveness estimator interface.
Definition: ILivenessFPREstimator.h:32
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
fsdk::LivenessFPREstimation::phoneScore
float phoneScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:22
Types.h
Common data types and structures.
fsdk::Landmarks
Face landmarks template structure.
Definition: Landmarks.h:21
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:25
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::LivenessFPREstimation::totalScore
float totalScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:24
fsdk::LivenessFPREstimation::flyingFacesScore
float flyingFacesScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:23
fsdk::LivenessFPREstimation
Liveness FPR estimation output.
Definition: ILivenessFPREstimator.h:20
fsdk::LivenessFPREstimation::replayScore
float replayScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:21
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