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

ILivenessFlyingFacesEstimator.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(ILivenessFlyingFacesEstimator);
12 #endif
13
25 struct LivenessFlyingFacesEstimation {
26 float score;
27 bool isReal;
28 };
29
34 struct ILivenessFlyingFacesEstimator : IRefCounted {
46 virtual Result<FSDKError> estimate(
47 const Image& image,
48 const Detection& detection,
49 LivenessFlyingFacesEstimation& estimation) const noexcept = 0;
50
64 virtual Result<FSDKError> estimate(
65 Span<const Image> images,
66 Span<const Detection> detections,
67 Span<LivenessFlyingFacesEstimation> estimations) const noexcept = 0;
68
80 virtual Result<FSDKError> validate(
81 Span<const Image> images,
82 Span<const Detection> detections,
83 Span<Result<FSDKError>> errors) const noexcept = 0;
84 };
85
87 } // namespace fsdk
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
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::ILivenessFlyingFacesEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detections, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
fsdk::LivenessFlyingFacesEstimation
Liveness Flying Faces estimation output.
Definition: ILivenessFlyingFacesEstimator.h:25
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ILivenessFlyingFacesEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, LivenessFlyingFacesEstimation &estimation) const noexcept=0
Helps to check if person is real or not.
fsdk::LivenessFlyingFacesEstimation::isReal
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFlyingFacesEstimator.h:27
fsdk::ILivenessFlyingFacesEstimator
Flying Faces Liveness estimator interface.
Definition: ILivenessFlyingFacesEstimator.h:34
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
fsdk::LivenessFlyingFacesEstimation::score
float score
Numerical value in range [0, 1].
Definition: ILivenessFlyingFacesEstimator.h:26