| Face Engine SDK 5.34.0 A face detection, recognition and tracking engine.

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/IQualityEstimator.h>
16 #include <fsdk/Estimators/ISubjectiveQualityEstimator.h>
17
18 #include <fsdk/Types/FaceEngineEdition.h>
19
42 namespace fsdk {
44
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
46 DECLARE_SMARTPTR(IFaceEnginePos);
47 #endif
48
58 struct IFaceEnginePos : IRefCounted {
59
64 virtual ResultValue<FSDKError, IDetectorPtr> createDetector() noexcept = 0;
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 FSDK_DEPRECATED("createQualityEstimator is deprecated since v.5.32.0, "
92 "use createSubjectiveQualityEstimator instead!")
93 virtual ResultValue<FSDKError, IQualityEstimatorPtr> createQualityEstimator() noexcept = 0;
94
100 virtual ResultValue<FSDKError, ISubjectiveQualityEstimatorPtr>
101 createSubjectiveQualityEstimator() 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
224 FSDK_API Result<FSDKError> activateLicense(ILicense* license, const char* configPath) noexcept;
225
234 FSDK_API Result<FSDKError> activateLicense(ILicense* license, ISettingsProvider* settings) noexcept;
235
241 FSDK_API ResultValue<FSDKError, Fingerprint> getFingerprint(const ISettingsProvider* settings) noexcept;
242
251 FSDK_API ResultValue<FSDKError, IFaceEnginePosPtr> createFaceEngineMobile(
252 const char* dataPath = nullptr,
253 const char* configPath = nullptr,
254 const char* runtimePath = nullptr) noexcept;
255
261 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr> createSettingsProvider(const char* path) noexcept;
262
269 FSDK_API ResultValue<FSDKError, ISettingsProviderPtr>
270 createSettingsProviderFromString(const char* content) noexcept;
271
272
273 } // namespace fsdk
fsdk::IFaceEnginePos::getFaceEngineEdition
virtual FaceEngineEdition getFaceEngineEdition() const noexcept=0
Get LUNA SDK distribution edition.
fsdk::IFaceEnginePos::FSDK_DEPRECATED
FSDK_DEPRECATED("createQualityEstimator is deprecated since v.5.32.0, " "use createSubjectiveQualityEstimator instead!") virtual ResultValue< FSDKError
Creates Quality estimator.
fsdk::IFaceEnginePos::createGlassesEstimator
virtual ResultValue< FSDKError, IGlassesEstimatorPtr > createGlassesEstimator() noexcept=0
Creates Glasses estimator.
FSDK_API
#define FSDK_API
Dummy.
Definition: Def.h:27
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
IWarper.h
Image and landmarks warping.
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::IFaceEnginePos::getRuntimeSettingsProvider
virtual ISettingsProvider * getRuntimeSettingsProvider() const noexcept=0
Gets runtime settings provider.
fsdk::IFaceEnginePos::createDetector
virtual ResultValue< FSDKError, IDetectorPtr > createDetector() noexcept=0
Creates a detector of given type.
IObject.h
Object system types and interfaces.
fsdk::activateLicense
FSDK_API Result< FSDKError > activateLicense(ILicense *license, const char *configPath) noexcept
Makes License activation with some platform specific manner. Network connection is required...
fsdk::ILicense
License objects interface.
Definition: ILicense.h:84
fsdk::createSettingsProviderFromString
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProviderFromString(const char *content) noexcept
Creates a settings provider from the xml-formatted string.
fsdk::IFaceEnginePos::setDataDirectory
virtual void setDataDirectory(const char *path) noexcept=0
Sets data directory.
fsdk::getFingerprint
FSDK_API ResultValue< FSDKError, Fingerprint > getFingerprint(const ISettingsProvider *settings) noexcept
Gets the device fingerprint which could be used for the offline activation.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::createFaceEngineMobile
FSDK_API ResultValue< FSDKError, IFaceEnginePosPtr > createFaceEngineMobile(const char *dataPath=nullptr, const char *configPath=nullptr, const char *runtimePath=nullptr) noexcept
Create the LUNA SDK root object.
Log.h
Log interfaces.
fsdk::IFaceEnginePos
Root LUNA SDK object interface.
Definition: IFaceEnginePos.h:58
fsdk::IFaceEnginePos::getDataDirectory
virtual const char * getDataDirectory() const noexcept=0
Gets data directory.
fsdk::IFaceEnginePos::setRuntimeSettingsProvider
virtual void setRuntimeSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets runtime settings provider.
IDescriptor.h
Descriptor extractor and matcher interfaces.
fsdk::IFaceEnginePos::createDescriptorBatch
virtual ResultValue< FSDKError, IDescriptorBatchPtr > createDescriptorBatch(int32_t size, uint32_t version=0) noexcept=0
Creates Batch of descriptors.
Def.h
Common SDK definitions.
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types...
Definition: ResultValue.h:21
fsdk::IFaceEnginePos::createMedicalMaskEstimator
virtual ResultValue< FSDKError, IMedicalMaskEstimatorPtr > createMedicalMaskEstimator() noexcept=0
Creates MedicalMask estimator.
IDetector.h
Face detector interfaces.
fsdk::IFaceEnginePos::createDescriptor
virtual ResultValue< FSDKError, IDescriptorPtr > createDescriptor(uint32_t version=0) noexcept=0
Creates Descriptor.
fsdk::IFaceEnginePos::createMatcher
virtual ResultValue< FSDKError, IDescriptorMatcherPtr > createMatcher(uint32_t version=0) noexcept=0
Creates descriptor matcher.
fsdk::IFaceEnginePos::createWarper
virtual ResultValue< FSDKError, IWarperPtr > createWarper() noexcept=0
Creates warper.
fsdk::IFaceEnginePos::createExtractor
virtual ResultValue< FSDKError, IDescriptorExtractorPtr > createExtractor(uint32_t version=0) noexcept=0
Creates descriptor extractor.
fsdk::IFaceEnginePos::createHeadPoseEstimator
virtual ResultValue< FSDKError, IHeadPoseEstimatorPtr > createHeadPoseEstimator() noexcept=0
Creates Head pose estimator.
fsdk::IArchive
Archive interface.
Definition: IObject.h:38
fsdk::FSDKError
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
fsdk::IFaceEnginePos::createSubjectiveQualityEstimator
virtual ResultValue< FSDKError, ISubjectiveQualityEstimatorPtr > createSubjectiveQualityEstimator() noexcept=0
Creates Subjective quality estimator.
ISettingsProvider.h
Settings provider interface.
fsdk::IFaceEnginePos::getLicense
virtual ILicense * getLicense() const noexcept=0
Get current License object, which was set for FaceEngine object.
fsdk::createSettingsProvider
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > createSettingsProvider(const char *path) noexcept
Creates a settings provider.
fsdk::IFaceEnginePos::setSettingsProvider
virtual void setSettingsProvider(ISettingsProvider *provider) noexcept=0
Sets settings provider.
fsdk::ISettingsProvider
SDK settings provider interface.
Definition: ISettingsProvider.h:32
fsdk::IFaceEnginePos::getSettingsProvider
virtual ISettingsProvider * getSettingsProvider() const noexcept=0
Gets settings provider.