Face Engine SDK  5.25.0
A face detection, recognition and tracking engine.
include/fsdk/Estimators/INIRLivenessEstimator.h
00001 #pragma once
00002 
00003 #include <fsdk/FSDKError.h>
00004 #include <fsdk/IObject.h>
00005 #include <fsdk/Types.h>
00006 
00007 namespace fsdk {
00008 
00009 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00010     DECLARE_SMARTPTR(INIRLivenessEstimator);
00011 #endif
00012 
00023     enum class NIRLivenessMode {
00024         Default, // Specified in config file.
00025         M1,      // M1.
00026         M2       // M2.
00027     };
00028 
00034     struct NIRLivenessEstimation {
00035         enum class State {
00036             Real = 0, 
00037             Fake = 1, 
00038             Unknown
00039         };
00040 
00041         float score;
00042         State state;
00043     };
00044 
00050     struct INIRLivenessEstimator : IRefCounted {
00059         virtual Result<FSDKError>
00060         estimate(const Image& warp, NIRLivenessEstimation& irEstimation) const noexcept = 0;
00061 
00072         virtual Result<FSDKError>
00073         estimate(Span<const Image> warps, Span<NIRLivenessEstimation> irEstimation) const noexcept = 0;
00074 
00085         virtual Result<FSDKError>
00086         validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
00087     };
00088 
00090 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines