Face Engine SDK  5.17.0
A face detection, recognition and tracking engine.
 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 
25  float score = 0.0f;
26  bool isReal = false;
27  };
28 
46  virtual Result<FSDKError>
47  update(
48  const Image& image,
49  uint32_t iFrame,
50  Image& background) const noexcept = 0;
51 
62  virtual Result<FSDKError>
63  estimate(
64  const Image& image,
65  const Detection& detection,
66  const Image& background,
67  LivenessRGBMEstimation& estimation) const noexcept = 0;
68  };
70 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
Common data types and structures.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
RGBM Liveness estimator interface.
Definition: ILivenessRGBMEstimator.h:33
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.
Image.
Definition: Image.h:38
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.
LivenessRGBM estimation structure.
Definition: ILivenessRGBMEstimator.h:24
bool isReal
Where person is real or not.
Definition: ILivenessRGBMEstimator.h:26
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
float score
Estimation score.
Definition: ILivenessRGBMEstimator.h:25