Face Engine SDK  5.21.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ILivenessDepthRGBEstimator.h
1 #pragma once
2 
3 #include <fsdk/Def.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/IRefCounted.h>
6 #include <fsdk/Types/Detection.h>
7 #include <fsdk/Types/Image.h>
8 #include <fsdk/Types/Landmarks.h>
9 #include <fsdk/Types/Ref.h>
10 #include <fsdk/Types/Result.h>
11 #include <fsdk/Types/Span.h>
12 
13 namespace fsdk {
14 
15 #ifndef DOXYGEN_SHOULD_SKIP_THIS
16  DECLARE_SMARTPTR(ILivenessDepthRGBEstimator);
17 #endif
18 
30  float score;
32  bool isReal;
33  };
34 
55  const Image& depth,
56  const Image& rgb,
57  const Detection& detection,
58  const Landmarks5& landmarks5,
59  DepthRGBEstimation& out) const noexcept = 0;
60 
77  Span<const Image> depths,
78  Span<const Image> rgbs,
79  Span<const Detection> detections,
80  Span<const Landmarks5> landmarks5,
81  Span<DepthRGBEstimation> outs) const noexcept = 0;
82 
97  Span<const Image> depths,
98  Span<const Image> rgbs,
99  Span<const Detection> detections,
100  Span<const Landmarks5> landmarks5,
101  Span<Result<FSDKError>> errors) const noexcept = 0;
102  };
103 
105 } // namespace fsdk
float score
boolean flag that indicates whether a person is real.
Definition: ILivenessDepthRGBEstimator.h:30
#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
Face landmarks template structure.
Definition: Landmarks.h:23
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
virtual Result< FSDKError > validate(Span< const Image > depths, Span< const Image > rgbs, Span< const Detection > detections, Span< const Landmarks5 > landmarks5, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
Depth+RBG liveness estimation output structure.
Definition: ILivenessDepthRGBEstimator.h:27
Common SDK definitions.
Depth+RGB estimator interface.
Definition: ILivenessDepthRGBEstimator.h:41
Image.
Definition: Image.h:38
virtual Result< FSDKError > estimate(const Image &depth, const Image &rgb, const Detection &detection, const Landmarks5 &landmarks5, DepthRGBEstimation &out) const noexcept=0
Checks whether or not the detection corresponds to the real person.
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
Reference counted object interface.