| Face Engine SDK 5.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
ILivenessRGBMEstimator.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(ILivenessRGBMEstimator);
12 #endif
13
19 struct LivenessRGBMEstimation {
20 float score = 0.0f;
21 bool isReal = false;
22 };
23
28 struct ILivenessRGBMEstimator : IRefCounted {
41 virtual Result<FSDKError>
42 update(
43 const Image& image,
44 uint32_t iFrame,
45 Image& background) const noexcept = 0;
46
57 virtual Result<FSDKError>
58 estimate(
59 const Image& image,
60 const Detection& detection,
61 const Image& background,
62 LivenessRGBMEstimation& estimation) const noexcept = 0;
63 };
64
65 } // namespace fsdk
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
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::ILivenessRGBMEstimator
RGBM Liveness estimator interface.
Definition: ILivenessRGBMEstimator.h:28
fsdk::ILivenessRGBMEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, const Image &background, LivenessRGBMEstimation &estimation) const noexcept=0
Check if detection corresponds to person alive or not.
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ILivenessRGBMEstimator::update
virtual Result< FSDKError > update(const Image &image, uint32_t iFrame, Image &background) const noexcept=0
Prepare background method. Pass here every frame from the stream to extract background.
fsdk::LivenessRGBMEstimation
LivenessRGBM estimation structure.
Definition: ILivenessRGBMEstimator.h:19
fsdk::LivenessRGBMEstimation::isReal
bool isReal
Where person is real or not.
Definition: ILivenessRGBMEstimator.h:21
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::LivenessRGBMEstimation::score
float score
Estimation score.
Definition: ILivenessRGBMEstimator.h:20