| Face Engine SDK 4.7.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 #include <fsdk/Face.h>
8
9 namespace fsdk {
10
11 #ifndef DOXYGEN_SHOULD_SKIP_THIS
12 DECLARE_SMARTPTR(ILivenessFPREstimator);
13 #endif
14
21 struct LivenessFPREstimation {
22 float replayScore;
23 float phoneScore;
24 float flyingFacesScore;
25 float totalScore;
26 bool isReal;
27 };
28
33 struct ILivenessFPREstimator : IRefCounted {
34
43 virtual fsdk::Result<fsdk::FSDKError> estimate(
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 }
fsdk::ILivenessFPREstimator
FPR Liveness estimator interface.
Definition: ILivenessFPREstimator.h:33
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:23
Types.h
Common data types and structures.
fsdk::ILivenessFPREstimator::estimate
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.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::Face
Definition: Face.h:9
fsdk::LivenessFPREstimation::isReal
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFPREstimator.h:26
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:25
fsdk::LivenessFPREstimation::flyingFacesScore
float flyingFacesScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:24
fsdk::LivenessFPREstimation
Liveness FPR estimation output.
Definition: ILivenessFPREstimator.h:21
fsdk::LivenessFPREstimation::replayScore
float replayScore
Numerical value in range [0, 1].
Definition: ILivenessFPREstimator.h:22
fsdk::Image
Image.
Definition: Image.h:38