Face Engine SDK 5.26.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
IFaceEnginePos.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/IHeadPoseEstimator.h>
13#include <fsdk/Estimators/IGlassesEstimator.h>
14#include <fsdk/Estimators/IMedicalMaskEstimator.h>
15#include <fsdk/Estimators/INIRLivenessEstimator.h>
16#include <fsdk/Estimators/IQualityEstimator.h>
17
18#include <fsdk/Types/FaceEngineEdition.h>
19
43namespace fsdk {
44
45#ifndef DOXYGEN_SHOULD_SKIP_THIS
46 DECLARE_SMARTPTR(IFaceEnginePos);
47#endif
48
59
65
70 virtual ResultValue<FSDKError, IHeadPoseEstimatorPtr> createHeadPoseEstimator() noexcept = 0;
71
77 virtual ResultValue<FSDKError, IMedicalMaskEstimatorPtr> createMedicalMaskEstimator() noexcept = 0;
78
84 virtual ResultValue<FSDKError, IGlassesEstimatorPtr> createGlassesEstimator() noexcept = 0;
85
91 virtual ResultValue<FSDKError, IQualityEstimatorPtr> createQualityEstimator() noexcept = 0;
92
100 virtual ResultValue<FSDKError, INIRLivenessEstimatorPtr>
101 createNIRLivenessEstimator(const NIRLivenessMode mode = NIRLivenessMode::Default) noexcept = 0;
102
111 virtual ResultValue<FSDKError, IDescriptorPtr> createDescriptor(uint32_t version = 0) noexcept = 0;
112
119 virtual ResultValue<FSDKError, IDescriptorPtr>
120 createDescriptor(IArchive* archive, uint32_t flags = 0) noexcept = 0;
121
132 virtual ResultValue<FSDKError, IDescriptorBatchPtr>
133 createDescriptorBatch(int32_t size, uint32_t version = 0) noexcept = 0;
134
144 virtual ResultValue<FSDKError, IDescriptorExtractorPtr>
145 createExtractor(uint32_t version = 0) noexcept = 0;
146
155 virtual ResultValue<FSDKError, IDescriptorMatcherPtr> createMatcher(uint32_t version = 0) noexcept = 0;
156
161 virtual ResultValue<FSDKError, IWarperPtr> createWarper() noexcept = 0;
162
170 virtual FaceEngineEdition getFaceEngineEdition() const noexcept = 0;
171
176 virtual void setDataDirectory(const char* path) noexcept = 0;
177
183 virtual const char* getDataDirectory() const noexcept = 0;
184
189 virtual void setSettingsProvider(ISettingsProvider* provider) noexcept = 0;
190
195 virtual void setRuntimeSettingsProvider(ISettingsProvider* provider) noexcept = 0;
196
201 virtual ISettingsProvider* getSettingsProvider() const noexcept = 0;
202
207 virtual ISettingsProvider* getRuntimeSettingsProvider() const noexcept = 0;
208
213 virtual ILicense* getLicense() const noexcept = 0;
214 };
215
222 FSDK_API Result<FSDKError> activateLicense(ILicense* license, const char* configPath) noexcept;
223
230 FSDK_API Result<FSDKError> activateLicense(ILicense* license, ISettingsProvider* settings) noexcept;
231
241 const char* dataPath = nullptr,
242 const char* configPath = nullptr,
243 const char* runtimePath = nullptr) noexcept;
244
250 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr> createSettingsProvider(const char* path) noexcept;
251
258 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr>
259 createSettingsProviderFromString(const char* content) noexcept;
260
261
262} // namespace fsdk
#define FSDK_API
Dummy.
Definition Def.h:27
virtual ResultValue< FSDKError, IQualityEstimatorPtr > createQualityEstimator() noexcept=0
Creates Quality estimator.
virtual ResultValue< FSDKError, IHeadPoseEstimatorPtr > createHeadPoseEstimator() noexcept=0
Creates Head pose estimator.
virtual ResultValue< FSDKError, INIRLivenessEstimatorPtr > createNIRLivenessEstimator(const NIRLivenessMode mode=NIRLivenessMode::Default) noexcept=0
Creates NIRLiveness estimator.
virtual ResultValue< FSDKError, IDescriptorExtractorPtr > createExtractor(uint32_t version=0) noexcept=0
Creates descriptor extractor.
FSDK_API Result< FSDKError > activateLicense(ILicense *license, const char *configPath) noexcept
Makes License activation with some platform specific manner. Network connection is required.
virtual ResultValue< FSDKError, IDescriptorBatchPtr > createDescriptorBatch(int32_t size, uint32_t version=0) noexcept=0
Creates Batch of descriptors.
virtual void setDataDirectory(const char *path) noexcept=0
Sets data directory.
virtual void setSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets settings provider.
virtual ResultValue< FSDKError, IWarperPtr > createWarper() noexcept=0
Creates warper.
virtual ISettingsProvider * getRuntimeSettingsProvider() const noexcept=0
Gets runtime settings provider.
virtual ResultValue< FSDKError, IDescriptorMatcherPtr > createMatcher(uint32_t version=0) noexcept=0
Creates descriptor matcher.
virtual ResultValue< FSDKError, IGlassesEstimatorPtr > createGlassesEstimator() noexcept=0
Creates Glasses estimator.
virtual FaceEngineEdition getFaceEngineEdition() const noexcept=0
Get LUNA SDK distribution edition.
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, IMedicalMaskEstimatorPtr > createMedicalMaskEstimator() noexcept=0
Creates MedicalMask estimator.
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProviderFromString(const char *content) noexcept
Creates a settings provider from the xml-formatted string.
virtual ResultValue< FSDKError, IDetectorPtr > createDetector() noexcept=0
Creates a detector of given type.
virtual ResultValue< FSDKError, IDescriptorPtr > createDescriptor(uint32_t version=0) noexcept=0
Creates Descriptor.
virtual void setRuntimeSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets runtime settings provider.
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProvider(const char *path) noexcept
Create a settings provider.
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition Def.h:56
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.
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
FSDKError
Common SDK error codes.
Definition FSDKError.h:17
Archive interface.
Definition IObject.h:38
Root LUNA SDK object interface.
Definition IFaceEnginePos.h:58
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