Face Engine SDK  5.21.0
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 
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
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition: Span.h:14
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
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::Landmarks
Face landmarks template structure.
Definition: Landmarks.h:23
fsdk::ILivenessDepthRGBEstimator
Depth+RGB estimator interface.
Definition: ILivenessDepthRGBEstimator.h:41
fsdk::DepthRGBEstimation
Depth+RBG liveness estimation output structure.
Definition: ILivenessDepthRGBEstimator.h:27
fsdk::DepthRGBEstimation::score
float score
boolean flag that indicates whether a person is real.
Definition: ILivenessDepthRGBEstimator.h:30
fsdk::Detection
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
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::ILivenessDepthRGBEstimator::estimate
virtual Result< FSDKError > estimate(Span< const Image > depths, Span< const Image > rgbs, Span< const Detection > detections, Span< const Landmarks5 > landmarks5, Span< DepthRGBEstimation > outs) const noexcept=0
Checks several detection on several images to see whether or not the detections corresponds to the re...
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37