| Face Engine SDK 5.31.2 A face detection, recognition and tracking engine.

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
27 struct DepthRGBEstimation {
30 float score;
32 bool isReal;
33 };
34
41 struct ILivenessDepthRGBEstimator : IRefCounted {
54 virtual Result<FSDKError> estimate(
55 const Image& depth,
56 const Image& rgb,
57 const Detection& detection,
58 const Landmarks5& landmarks5,
59 DepthRGBEstimation& out) const noexcept = 0;
60
76 virtual Result<FSDKError> estimate(
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
96 virtual Result<FSDKError> validate(
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
fsdk::DepthRGBEstimation::score
float score
boolean flag that indicates whether a person is real.
Definition: ILivenessDepthRGBEstimator.h:30
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::Landmarks
Face landmarks template structure.
Definition: Landmarks.h:23
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::ILivenessDepthRGBEstimator::validate
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.
fsdk::DepthRGBEstimation
Depth+RBG liveness estimation output structure.
Definition: ILivenessDepthRGBEstimator.h:27
Def.h
Common SDK definitions.
fsdk::ILivenessDepthRGBEstimator
Depth+RGB estimator interface.
Definition: ILivenessDepthRGBEstimator.h:41
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ILivenessDepthRGBEstimator::estimate
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.
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
IRefCounted.h
Reference counted object interface.