Face Engine SDK  4.6.0
A face detection, recognition and tracking engine.
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 
20  float score = 0.0f;
21  bool isReal = false;
22  };
23 
38  update(
39  const fsdk::Image &image,
40  uint32_t iFrame,
41  fsdk::Image &background) const noexcept = 0;
42 
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
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
SDK namespace.
Definition: IAGSEstimator.h:8
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
RGBM Liveness estimator interface.
Definition: ILivenessRGBMEstimator.h:28
Image.
Definition: Image.h:37
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.
LivenessRGBM estimation structure.
Definition: ILivenessRGBMEstimator.h:19
bool isReal
Where person is real or not.
Definition: ILivenessRGBMEstimator.h:21
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.
float score
Estimation score.
Definition: ILivenessRGBMEstimator.h:20
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10