Face Engine SDK 5.26.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
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>
9#include <fsdk/ISettingsProvider.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/IFaceOcclusionEstimator.h>
16#include <fsdk/Estimators/IGazeEstimator.h>
17#include <fsdk/Estimators/IGlassesEstimator.h>
18#include <fsdk/Estimators/IBestShotQualityEstimator.h>
19#include <fsdk/Estimators/IDepthLivenessEstimator.h>
20#include <fsdk/Estimators/ILivenessOneShotRGBEstimator.h>
21#include <fsdk/Estimators/ILivenessDepthRGBEstimator.h>
22#include <fsdk/Estimators/IMedicalMaskEstimator.h>
23#include <fsdk/Estimators/IMouthEstimator.h>
24#include <fsdk/Estimators/INIRLivenessEstimator.h>
25#include <fsdk/Estimators/IQualityEstimator.h>
26
27#include <fsdk/Types/FaceEngineEdition.h>
28
52namespace fsdk {
53
54#ifndef DOXYGEN_SHOULD_SKIP_THIS
55 DECLARE_SMARTPTR(IFaceEngineMobile);
56#endif
57
68
74
79 virtual ResultValue<FSDKError, IHeadPoseEstimatorPtr> createHeadPoseEstimator() noexcept = 0;
80
85 virtual ResultValue<FSDKError, IAGSEstimatorPtr> createAGSEstimator() noexcept = 0;
86
91 virtual ResultValue<FSDKError, IEyeEstimatorPtr> createEyeEstimator() noexcept = 0;
92
98 virtual ResultValue<FSDKError, IMedicalMaskEstimatorPtr> createMedicalMaskEstimator() noexcept = 0;
99
105 virtual ResultValue<FSDKError, IGazeEstimatorPtr>
107
113 virtual ResultValue<FSDKError, IGlassesEstimatorPtr> createGlassesEstimator() noexcept = 0;
114
120 virtual ResultValue<FSDKError, IQualityEstimatorPtr> createQualityEstimator() noexcept = 0;
121
126 virtual ResultValue<FSDKError, IBestShotQualityEstimatorPtr>
128
133 virtual ResultValue<FSDKError, ILivenessOneShotRGBEstimatorPtr>
135
141 virtual ResultValue<FSDKError, IDepthLivenessEstimatorPtr> createDepthLivenessEstimator() noexcept = 0;
142
148 virtual ResultValue<FSDKError, ILivenessDepthRGBEstimatorPtr>
150
158 virtual ResultValue<FSDKError, INIRLivenessEstimatorPtr>
159 createNIRLivenessEstimator(const NIRLivenessMode mode = NIRLivenessMode::Default) noexcept = 0;
160
166 virtual ResultValue<FSDKError, IMouthEstimatorPtr> createMouthEstimator() noexcept = 0;
167
168
174 virtual ResultValue<FSDKError, IFaceOcclusionEstimatorPtr> createFaceOcclusionEstimator() noexcept = 0;
175
184 virtual ResultValue<FSDKError, IDescriptorPtr> createDescriptor(uint32_t version = 0) noexcept = 0;
185
192 virtual ResultValue<FSDKError, IDescriptorPtr>
193 createDescriptor(IArchive* archive, uint32_t flags = 0) noexcept = 0;
194
205 virtual ResultValue<FSDKError, IDescriptorBatchPtr>
206 createDescriptorBatch(int32_t size, uint32_t version = 0) noexcept = 0;
207
217 virtual ResultValue<FSDKError, IDescriptorExtractorPtr>
218 createExtractor(uint32_t version = 0) noexcept = 0;
219
228 virtual ResultValue<FSDKError, IDescriptorMatcherPtr> createMatcher(uint32_t version = 0) noexcept = 0;
229
234 virtual ResultValue<FSDKError, IWarperPtr> createWarper() noexcept = 0;
235
243 virtual FaceEngineEdition getFaceEngineEdition() const noexcept = 0;
244
249 virtual void setDataDirectory(const char* path) noexcept = 0;
250
256 virtual const char* getDataDirectory() const noexcept = 0;
257
262 virtual void setSettingsProvider(ISettingsProvider* provider) noexcept = 0;
263
268 virtual void setRuntimeSettingsProvider(ISettingsProvider* provider) noexcept = 0;
269
274 virtual ISettingsProvider* getSettingsProvider() const noexcept = 0;
275
280 virtual ISettingsProvider* getRuntimeSettingsProvider() const noexcept = 0;
281
286 virtual ILicense* getLicense() const noexcept = 0;
287 };
288
295 FSDK_API Result<FSDKError> activateLicense(ILicense* license, const char* configPath) noexcept;
296
304
314 const char* dataPath = nullptr,
315 const char* configPath = nullptr,
316 const char* runtimePath = nullptr) noexcept;
317
323 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr> createSettingsProvider(const char* path) noexcept;
324
331 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr>
332 createSettingsProviderFromString(const char* content) noexcept;
333
334} // namespace fsdk
#define FSDK_API
Dummy.
Definition Def.h:27
virtual ResultValue< FSDKError, ILivenessOneShotRGBEstimatorPtr > createLivenessOneShotRGBEstimator() noexcept=0
Creates Liveness OneShot estimator.
virtual ILicense * getLicense() const noexcept=0
Get current License object, which was set for FaceEngine object.
virtual ResultValue< FSDKError, IDescriptorExtractorPtr > createExtractor(uint32_t version=0) noexcept=0
Creates descriptor extractor.
virtual ResultValue< FSDKError, IDetectorPtr > createDetector() noexcept=0
Creates a detector of given type.
FSDK_API Result< FSDKError > activateLicense(ILicense *license, const char *configPath) noexcept
Makes License activation with some platform specific manner. Network connection is required.
virtual void setDataDirectory(const char *path) noexcept=0
Sets data directory.
virtual ResultValue< FSDKError, IGazeEstimatorPtr > createGazeEstimator(SensorType mode=SensorType::Visible) noexcept=0
Creates Gaze estimator.
virtual ResultValue< FSDKError, IGlassesEstimatorPtr > createGlassesEstimator() noexcept=0
Creates Glasses estimator.
virtual void setRuntimeSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets runtime settings provider.
virtual ResultValue< FSDKError, IFaceOcclusionEstimatorPtr > createFaceOcclusionEstimator() noexcept=0
Creates FaceOcclusion estimator.
virtual ResultValue< FSDKError, IDescriptorPtr > createDescriptor(uint32_t version=0) noexcept=0
Creates Descriptor.
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 ResultValue< FSDKError, IBestShotQualityEstimatorPtr > createBestShotQualityEstimator() noexcept=0
Creates BestShotQuality estimator.
virtual ResultValue< FSDKError, IDepthLivenessEstimatorPtr > createDepthLivenessEstimator() noexcept=0
Creates universal DepthLiveness estimator.
virtual ResultValue< FSDKError, IWarperPtr > createWarper() noexcept=0
Creates warper.
virtual ResultValue< FSDKError, IQualityEstimatorPtr > createQualityEstimator() noexcept=0
Creates Quality estimator.
virtual FaceEngineEdition getFaceEngineEdition() const noexcept=0
Get LUNA SDK ditribution edition.
virtual ResultValue< FSDKError, IMouthEstimatorPtr > createMouthEstimator() noexcept=0
Creates Mouth estimator.
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProviderFromString(const char *content) noexcept
Creates a settings provider from the xml-formatted string.
virtual ISettingsProvider * getSettingsProvider() const noexcept=0
Gets settings provider.
virtual void setSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets settings provider.
virtual ResultValue< FSDKError, IEyeEstimatorPtr > createEyeEstimator() noexcept=0
Creates Eye estimator.
virtual ResultValue< FSDKError, IDescriptorBatchPtr > createDescriptorBatch(int32_t size, uint32_t version=0) noexcept=0
Creates Batch of descriptors.
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProvider(const char *path) noexcept
Create a settings provider.
virtual ResultValue< FSDKError, IDescriptorMatcherPtr > createMatcher(uint32_t version=0) noexcept=0
Creates descriptor matcher.
virtual ISettingsProvider * getRuntimeSettingsProvider() const noexcept=0
Gets runtime settings provider.
virtual ResultValue< FSDKError, IMedicalMaskEstimatorPtr > createMedicalMaskEstimator() noexcept=0
Creates MedicalMask estimator.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
virtual ResultValue< FSDKError, IAGSEstimatorPtr > createAGSEstimator() noexcept=0
Creates AGS estimator.
virtual ResultValue< FSDKError, ILivenessDepthRGBEstimatorPtr > createLivenessDepthRGBEstimator() noexcept=0
Creates Liveness Depth+RGB estimator.
virtual ResultValue< FSDKError, INIRLivenessEstimatorPtr > createNIRLivenessEstimator(const NIRLivenessMode mode=NIRLivenessMode::Default) noexcept=0
Creates NIRLiveness estimator.
virtual ResultValue< FSDKError, IHeadPoseEstimatorPtr > createHeadPoseEstimator() noexcept=0
Creates Head pose estimator.
virtual const char * getDataDirectory() const noexcept=0
Gets data directory.
NIRLivenessMode
NIRLiveness estimation mode. Currently, available values to select the estimation mode are: Default,...
Definition INIRLivenessEstimator.h:23
SDK namespace.
Definition IAGSEstimator.h:8
SensorType
Sensor type structure. Determines which type of camera sensor is used to perform face recognition.
Definition SensorType.h:9
@ Visible
Visible sensor type.
FSDKError
Common SDK error codes.
Definition FSDKError.h:17
Archive interface.
Definition IObject.h:38
Root LUNA SDK object interface.
Definition IFaceEngineMobile.h:67
License objects interface.
Definition ILicense.h:47
Base strong reference counted object interface.
Definition IRefCounted.h:37
SDK settings provider interface.
Definition ISettingsProvider.h:32
A structure that encapsulates an action result enumeration.
Definition Result.h:27
Addon for Result to output some value aside the result. Specialization for copiable types.
Definition ResultValue.h:21