| Face Engine SDK 5.2.0 A face detection, recognition and tracking engine.

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
20 struct LivenessFPREstimation {
21 float replayScore;
22 float phoneScore;
23 float flyingFacesScore;
24 float totalScore;
25 bool isReal;
26 };
27
32 struct ILivenessFPREstimator : IRefCounted {
33
42 virtual fsdk::Result<fsdk::FSDKError> estimate(
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 }
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::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:20
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:37
fsdk::ILivenessFPREstimator::estimate
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.
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10