Face Engine SDK  5.21.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IFaceEngineMobile.h
1 #pragma once
2 
3 #include <fsdk/Log.h>
4 #include <fsdk/Def.h>
5 #include <fsdk/IObject.h>
6 #include <fsdk/ILicense.h>
7 #include <fsdk/IDetector.h>
8 #include <fsdk/IDescriptor.h>
10 #include <fsdk/IWarper.h>
11 
12 #include <fsdk/Estimators/IAGSEstimator.h>
13 #include <fsdk/Estimators/IHeadPoseEstimator.h>
14 #include <fsdk/Estimators/IEyeEstimator.h>
15 #include <fsdk/Estimators/IGlassesEstimator.h>
16 #include <fsdk/Estimators/IBestShotQualityEstimator.h>
17 #include <fsdk/Estimators/ILivenessOneShotRGBEstimator.h>
18 #include <fsdk/Estimators/ILivenessDepthRGBEstimator.h>
19 #include <fsdk/Estimators/IMedicalMaskEstimator.h>
20 #include <fsdk/Estimators/INIRLivenessEstimator.h>
21 #include <fsdk/Estimators/IQualityEstimator.h>
22 
23 #include <fsdk/Types/FaceEngineEdition.h>
24 
47 namespace fsdk {
49 
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51  DECLARE_SMARTPTR(IFaceEngineMobile);
52 #endif
53 
64 
70 
76 
82 
88 
95 
102 
109 
115  createBestShotQualityEstimator() noexcept = 0;
116 
122  createLivenessOneShotRGBEstimator() noexcept = 0;
123 
130  createLivenessDepthRGBEstimator() noexcept = 0;
131 
140  createNIRLivenessEstimator(const NIRLivenessMode mode = NIRLivenessMode::Default) noexcept = 0;
141 
150  virtual ResultValue<FSDKError, IDescriptorPtr> createDescriptor(uint32_t version = 0) noexcept = 0;
151 
159  createDescriptor(IArchive* archive, uint32_t flags = 0) noexcept = 0;
160 
172  createDescriptorBatch(int32_t size, uint32_t version = 0) noexcept = 0;
173 
184  createExtractor(uint32_t version = 0) noexcept = 0;
185 
194  virtual ResultValue<FSDKError, IDescriptorMatcherPtr> createMatcher(uint32_t version = 0) noexcept = 0;
195 
200  virtual ResultValue<FSDKError, IWarperPtr> createWarper() noexcept = 0;
201 
209  virtual FaceEngineEdition getFaceEngineEdition() const noexcept = 0;
210 
215  virtual void setDataDirectory(const char* path) noexcept = 0;
216 
222  virtual const char* getDataDirectory() const noexcept = 0;
223 
228  virtual void setSettingsProvider(ISettingsProvider* provider) noexcept = 0;
229 
234  virtual void setRuntimeSettingsProvider(ISettingsProvider* provider) noexcept = 0;
235 
240  virtual ISettingsProvider* getSettingsProvider() const noexcept = 0;
241 
246  virtual ISettingsProvider* getRuntimeSettingsProvider() const noexcept = 0;
247 
252  virtual ILicense* getLicense() const noexcept = 0;
253  };
254 
261  FSDK_API Result<FSDKError> activateLicense(ILicense* license, const char* configPath) noexcept;
262 
270 
280  const char* dataPath = nullptr,
281  const char* configPath = nullptr,
282  const char* runtimePath = nullptr) noexcept;
283 
289  FSDK_API ResultValue<FSDKError, ISettingsProviderPtr> createSettingsProvider(const char* path) noexcept;
290 
297  FSDK_API ResultValue<FSDKError, ISettingsProviderPtr>
298  createSettingsProviderFromString(const char* content) noexcept;
299 
300 } // namespace fsdk
virtual ResultValue< FSDKError, ILivenessDepthRGBEstimatorPtr > createLivenessDepthRGBEstimator() noexcept=0
Creates Liveness Depth+RGB estimator.
#define FSDK_API
Dummy.
Definition: Def.h:27
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
Image and landmarks warping.
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
virtual void setRuntimeSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets runtime settings provider.
virtual ResultValue< FSDKError, IDescriptorExtractorPtr > createExtractor(uint32_t version=0) noexcept=0
Creates descriptor extractor.
virtual ResultValue< FSDKError, ILivenessOneShotRGBEstimatorPtr > createLivenessOneShotRGBEstimator() noexcept=0
Creates Liveness OneShot estimator.
FSDK_API Result< FSDKError > activateLicense(ILicense *license, const char *configPath) noexcept
Makes License activation with some platform specific manner. Network connection is required...
Object system types and interfaces.
NIRLivenessMode
NIRLiveness estimation mode. Currently, available values to select the estimation mode are: Default...
Definition: INIRLivenessEstimator.h:23
License objects interface.
Definition: ILicense.h:47
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProviderFromString(const char *content) noexcept
Creates a settings provider from the xml-formatted string.
virtual ResultValue< FSDKError, INIRLivenessEstimatorPtr > createNIRLivenessEstimator(const NIRLivenessMode mode=NIRLivenessMode::Default) noexcept=0
Creates NIRLiveness estimator.
virtual ResultValue< FSDKError, IBestShotQualityEstimatorPtr > createBestShotQualityEstimator() noexcept=0
Creates BestShotQuality estimator.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
virtual ResultValue< FSDKError, IHeadPoseEstimatorPtr > createHeadPoseEstimator() noexcept=0
Creates Head pose estimator.
Log interfaces.
virtual ResultValue< FSDKError, IAGSEstimatorPtr > createAGSEstimator() noexcept=0
Creates AGS estimator.
virtual ISettingsProvider * getRuntimeSettingsProvider() const noexcept=0
Gets runtime settings provider.
virtual const char * getDataDirectory() const noexcept=0
Gets data directory.
Root LUNA SDK object interface.
Definition: IFaceEngineMobile.h:63
Descriptor extractor and matcher interfaces.
Common SDK definitions.
virtual ResultValue< FSDKError, IQualityEstimatorPtr > createQualityEstimator() noexcept=0
Creates Quality estimator.
virtual void setDataDirectory(const char *path) noexcept=0
Sets data directory.
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
Face detector interfaces.
virtual ResultValue< FSDKError, IDescriptorBatchPtr > createDescriptorBatch(int32_t size, uint32_t version=0) noexcept=0
Creates Batch of descriptors.
virtual ResultValue< FSDKError, IDetectorPtr > createDetector() noexcept=0
Creates a detector of given type.
virtual ResultValue< FSDKError, IDescriptorMatcherPtr > createMatcher(uint32_t version=0) noexcept=0
Creates descriptor matcher.
virtual void setSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets settings provider.
Archive interface.
Definition: IObject.h:38
virtual ResultValue< FSDKError, IEyeEstimatorPtr > createEyeEstimator() noexcept=0
Creates Eye estimator.
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
virtual ResultValue< FSDKError, IGlassesEstimatorPtr > createGlassesEstimator() noexcept=0
Creates Glasses estimator.
virtual ResultValue< FSDKError, IMedicalMaskEstimatorPtr > createMedicalMaskEstimator() noexcept=0
Creates MedicalMask estimator.
Settings provider interface.
virtual FaceEngineEdition getFaceEngineEdition() const noexcept=0
Get LUNA SDK ditribution edition.
virtual ResultValue< FSDKError, IWarperPtr > createWarper() noexcept=0
Creates warper.
virtual ResultValue< FSDKError, IDescriptorPtr > createDescriptor(uint32_t version=0) noexcept=0
Creates Descriptor.
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProvider(const char *path) noexcept
Create a settings provider.
FSDK_API ResultValue< FSDKError, IFaceEngineMobilePtr > createFaceEngineMobile(const char *dataPath=nullptr, const char *configPath=nullptr, const char *runtimePath=nullptr) noexcept
Create the LUNA SDK root object.
virtual ISettingsProvider * getSettingsProvider() const noexcept=0
Gets settings provider.
virtual ILicense * getLicense() const noexcept=0
Get current License object, which was set for FaceEngine object.
SDK settings provider interface.
Definition: ISettingsProvider.h:32