Face Engine SDK  5.8.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
21  float score;
22  bool isReal;
23  };
24 
42  const Image& image,
43  const Detection& detection,
44  LivenessFlyingFacesEstimation& estimation) const noexcept = 0;
45 
60  Span<const Image> images,
61  Span<const Detection> detections,
62  Span<LivenessFlyingFacesEstimation> estimations) const noexcept = 0;
63 
75  virtual Result<FSDKError>
76  validate(
77  Span<const Image> images,
78  Span<const Detection> detections,
79  Span<Result<FSDKError>> errors) const noexcept = 0;
80 };
81 
82 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
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.
Liveness Flying Faces estimation output.
Definition: ILivenessFlyingFacesEstimator.h:20
Image.
Definition: Image.h:38
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, LivenessFlyingFacesEstimation &estimation) const noexcept=0
Helps to check if person is real or not.
bool isReal
Is real face (true) or not (false).
Definition: ILivenessFlyingFacesEstimator.h:22
Flying Faces Liveness estimator interface.
Definition: ILivenessFlyingFacesEstimator.h:29
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
float score
Numerical value in range [0, 1].
Definition: ILivenessFlyingFacesEstimator.h:21