Face Engine SDK  5.17.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 
00029 
00035     struct NIRLivenessEstimation {
00036         enum class State {
00037             Real    = 0,    
00038             Fake    = 1,    
00039             Unknown
00040         };
00041 
00042         float score;
00043         State state;
00044     };
00045 
00051     struct INIRLivenessEstimator : IRefCounted {
00060         virtual Result<FSDKError> 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     };
00089 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines