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

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
20 struct LivenessFlyingFacesEstimation {
21 float score;
22 bool isReal;
23 };
24
29 struct ILivenessFlyingFacesEstimator : IRefCounted {
30
39 virtual fsdk::Result<fsdk::FSDKError> estimate(
40 const fsdk::Face& face,
41 LivenessFlyingFacesEstimation& estimation) const noexcept = 0;
42
53 virtual fsdk::Result<fsdk::FSDKError> estimate(
54 fsdk::Span<const fsdk::Face> faces,
55 fsdk::Span<LivenessFlyingFacesEstimation> estimations) const noexcept = 0;
56 };
57
58 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::Face
Definition: Face.h:9
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::LivenessFlyingFacesEstimation
Liveness Flying Faces estimation output.
Definition: ILivenessFlyingFacesEstimator.h:20
fsdk::ILivenessFlyingFacesEstimator::estimate
virtual fsdk::Result< fsdk::FSDKError > estimate(const fsdk::Face &face, 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:22
fsdk::ILivenessFlyingFacesEstimator
Flying Faces Liveness estimator interface.
Definition: ILivenessFlyingFacesEstimator.h:29
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
fsdk::LivenessFlyingFacesEstimation::score
float score
Numerical value in range [0, 1].
Definition: ILivenessFlyingFacesEstimator.h:21