| 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
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 {
37 virtual fsdk::Result<fsdk::FSDKError>
38 update(
39 const fsdk::Image &image,
40 uint32_t iFrame,
41 fsdk::Image &background) const noexcept = 0;
42
53 virtual fsdk::Result<fsdk::FSDKError>
54 estimate(
55 const fsdk::Image& image,
56 const fsdk::Detection& detection,
57 const fsdk::Image& background,
58 fsdk::LivenessRGBMEstimation& estimation) const noexcept = 0;
59 };
60
61 } // 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::Image
Image.
Definition: Image.h:38
fsdk::ILivenessRGBMEstimator::estimate
virtual fsdk::Result< fsdk::FSDKError > estimate(const fsdk::Image &image, const fsdk::Detection &detection, const fsdk::Image &background, fsdk::LivenessRGBMEstimation &estimation) const noexcept=0
Check if detection corresponds to person alive or not.
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::ILivenessRGBMEstimator::update
virtual fsdk::Result< fsdk::FSDKError > update(const fsdk::Image &image, uint32_t iFrame, fsdk::Image &background) const noexcept=0
Prepare background method. Pass here every frame from the stream to extract background.
fsdk::LivenessRGBMEstimation::score
float score
Estimation score.
Definition: ILivenessRGBMEstimator.h:20
fsdk::BaseDetection
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10