Face Engine SDK
5.23.1
A face detection, recognition and tracking engine.
|
Common interfaces and macros shared across all SDK objects. More...
Classes | |
struct | fsdk::IFaceEngineMobile |
Root LUNA SDK object interface. More... | |
struct | fsdk::IArchive |
Archive interface. More... | |
struct | fsdk::ISerializableObject |
Serializable object interface. More... | |
struct | fsdk::ErrorTraits< ISerializableObject::Error > |
Specialized for ISerializableObject::SerializationError. More... | |
struct | fsdk::IDataStorageObject |
Data storage object interface helper. More... | |
struct | fsdk::IRefCounted |
Base strong reference counted object interface. More... | |
struct | fsdk::ISettingsProvider |
SDK settings provider interface. More... | |
struct | fsdk::ErrorTraits< ISettingsProvider::Error > |
Specialized for ISettingsProvider::ParseError. More... | |
Defines | |
#define | ALIGN_UP(value, align) (((value) & (align - 1)) ? (((value) + (align - 1)) & ~(align - 1)) : (value)) |
#define | ALIGNED(x) __attribute__((aligned(x))) |
#define | RESTRICT __restrict__ |
#define | FORCE_INLINE inline __attribute__((always_inline)) |
#define | DECLARE_SMARTPTR(X) |
Smart ptr declaration helper macro. | |
#define | STRINGIFY2(x) #x |
Stringification helper macro. | |
#define | STRINGIFY(x) STRINGIFY2(x) |
Stringifies it's argument. | |
Functions | |
virtual ResultValue< FSDKError, IDetectorPtr > | fsdk::IFaceEngineMobile::createDetector () noexcept=0 |
Creates a detector of given type. | |
virtual ResultValue< FSDKError, IHeadPoseEstimatorPtr > | fsdk::IFaceEngineMobile::createHeadPoseEstimator () noexcept=0 |
Creates Head pose estimator. | |
virtual ResultValue< FSDKError, IAGSEstimatorPtr > | fsdk::IFaceEngineMobile::createAGSEstimator () noexcept=0 |
Creates AGS estimator. | |
virtual ResultValue< FSDKError, IEyeEstimatorPtr > | fsdk::IFaceEngineMobile::createEyeEstimator () noexcept=0 |
Creates Eye estimator. | |
virtual ResultValue< FSDKError, IMedicalMaskEstimatorPtr > | fsdk::IFaceEngineMobile::createMedicalMaskEstimator () noexcept=0 |
Creates MedicalMask estimator. | |
virtual ResultValue< FSDKError, IGlassesEstimatorPtr > | fsdk::IFaceEngineMobile::createGlassesEstimator () noexcept=0 |
Creates Glasses estimator. | |
virtual ResultValue< FSDKError, IQualityEstimatorPtr > | fsdk::IFaceEngineMobile::createQualityEstimator () noexcept=0 |
Creates Quality estimator. | |
virtual ResultValue< FSDKError, IBestShotQualityEstimatorPtr > | fsdk::IFaceEngineMobile::createBestShotQualityEstimator () noexcept=0 |
Creates BestShotQuality estimator. | |
virtual ResultValue< FSDKError, ILivenessOneShotRGBEstimatorPtr > | fsdk::IFaceEngineMobile::createLivenessOneShotRGBEstimator () noexcept=0 |
Creates Liveness OneShot estimator. | |
virtual ResultValue< FSDKError, IDepthLivenessEstimatorPtr > | fsdk::IFaceEngineMobile::createDepthLivenessEstimator () noexcept=0 |
Creates universal DepthLiveness estimator. | |
virtual ResultValue< FSDKError, ILivenessDepthRGBEstimatorPtr > | fsdk::IFaceEngineMobile::createLivenessDepthRGBEstimator () noexcept=0 |
Creates Liveness Depth+RGB estimator. | |
virtual ResultValue< FSDKError, INIRLivenessEstimatorPtr > | fsdk::IFaceEngineMobile::createNIRLivenessEstimator (const NIRLivenessMode mode=NIRLivenessMode::Default) noexcept=0 |
Creates NIRLiveness estimator. | |
virtual ResultValue< FSDKError, IMouthEstimatorPtr > | fsdk::IFaceEngineMobile::createMouthEstimator () noexcept=0 |
Creates Mouth estimator. | |
virtual ResultValue< FSDKError, IFaceOcclusionEstimatorPtr > | fsdk::IFaceEngineMobile::createFaceOcclusionEstimator () noexcept=0 |
Creates FaceOcclusion estimator. | |
virtual ResultValue< FSDKError, IDescriptorPtr > | fsdk::IFaceEngineMobile::createDescriptor (uint32_t version=0) noexcept=0 |
Creates Descriptor. | |
virtual ResultValue< FSDKError, IDescriptorPtr > | fsdk::IFaceEngineMobile::createDescriptor (IArchive *archive, uint32_t flags=0) noexcept=0 |
Creates and loads Descriptor from Archive. | |
virtual ResultValue< FSDKError, IDescriptorBatchPtr > | fsdk::IFaceEngineMobile::createDescriptorBatch (int32_t size, uint32_t version=0) noexcept=0 |
Creates Batch of descriptors. | |
virtual ResultValue< FSDKError, IDescriptorExtractorPtr > | fsdk::IFaceEngineMobile::createExtractor (uint32_t version=0) noexcept=0 |
Creates descriptor extractor. | |
virtual ResultValue< FSDKError, IDescriptorMatcherPtr > | fsdk::IFaceEngineMobile::createMatcher (uint32_t version=0) noexcept=0 |
Creates descriptor matcher. | |
virtual ResultValue< FSDKError, IWarperPtr > | fsdk::IFaceEngineMobile::createWarper () noexcept=0 |
Creates warper. | |
virtual FaceEngineEdition | fsdk::IFaceEngineMobile::getFaceEngineEdition () const noexcept=0 |
Get LUNA SDK ditribution edition. | |
virtual void | fsdk::IFaceEngineMobile::setDataDirectory (const char *path) noexcept=0 |
Sets data directory. | |
virtual const char * | fsdk::IFaceEngineMobile::getDataDirectory () const noexcept=0 |
Gets data directory. | |
virtual void | fsdk::IFaceEngineMobile::setSettingsProvider (ISettingsProvider *provider) noexcept=0 |
Sets settings provider. | |
virtual void | fsdk::IFaceEngineMobile::setRuntimeSettingsProvider (ISettingsProvider *provider) noexcept=0 |
Sets runtime settings provider. | |
virtual ISettingsProvider * | fsdk::IFaceEngineMobile::getSettingsProvider () const noexcept=0 |
Gets settings provider. | |
virtual ISettingsProvider * | fsdk::IFaceEngineMobile::getRuntimeSettingsProvider () const noexcept=0 |
Gets runtime settings provider. | |
virtual ILicense * | fsdk::IFaceEngineMobile::getLicense () const noexcept=0 |
Get current License object, which was set for FaceEngine object. | |
FSDK_API Result< FSDKError > | fsdk::activateLicense (ILicense *license, const char *configPath) noexcept |
Makes License activation with some platform specific manner. Network connection is required. | |
FSDK_API Result< FSDKError > | fsdk::activateLicense (ILicense *license, ISettingsProvider *settings) noexcept |
Makes License activation with some platform specific manner. Network connection is required. | |
FSDK_API ResultValue < FSDKError, IFaceEngineMobilePtr > | fsdk::createFaceEngineMobile (const char *dataPath=nullptr, const char *configPath=nullptr, const char *runtimePath=nullptr) noexcept |
Create the LUNA SDK root object. | |
FSDK_API ResultValue < FSDKError, ISettingsProviderPtr > | fsdk::createSettingsProvider (const char *path) noexcept |
Create a settings provider. | |
FSDK_API ResultValue < FSDKError, ISettingsProviderPtr > | fsdk::createSettingsProviderFromString (const char *content) noexcept |
Creates a settings provider from the xml-formatted string. |
Common interfaces and macros shared across all SDK objects.
#define DECLARE_SMARTPTR | ( | X | ) |
struct X; \ using X##Ptr = fsdk::Ref<X>
Smart ptr declaration helper macro.
FSDK_API Result<FSDKError> fsdk::activateLicense | ( | ILicense * | license, |
const char * | configPath | ||
) |
Makes License activation with some platform specific manner. Network connection is required.
[in] | license | pointer to the license object which should be activated |
[in] | configPath | path to license.conf file with licensing settings. |
FSDK_API Result<FSDKError> fsdk::activateLicense | ( | ILicense * | license, |
ISettingsProvider * | settings | ||
) |
Makes License activation with some platform specific manner. Network connection is required.
[in] | license | pointer to the license object which should be activated |
[in] | provider | settings provider. |
virtual ResultValue<FSDKError, IAGSEstimatorPtr> fsdk::IFaceEngineMobile::createAGSEstimator | ( | ) | [pure virtual] |
Creates AGS estimator.
virtual ResultValue<FSDKError, IBestShotQualityEstimatorPtr> fsdk::IFaceEngineMobile::createBestShotQualityEstimator | ( | ) | [pure virtual] |
Creates BestShotQuality estimator.
virtual ResultValue<FSDKError, IDepthLivenessEstimatorPtr> fsdk::IFaceEngineMobile::createDepthLivenessEstimator | ( | ) | [pure virtual] |
Creates universal DepthLiveness estimator.
virtual ResultValue<FSDKError, IDescriptorPtr> fsdk::IFaceEngineMobile::createDescriptor | ( | uint32_t | version = 0 | ) | [pure virtual] |
Creates Descriptor.
[in] | version | descriptor version. |
face descriptor will created by default, to create human descriptor pass version, minimum version of human descriptor is DV_MIN_HUMAN_DESCRIPTOR_VERSION == 102
virtual ResultValue<FSDKError, IDescriptorPtr> fsdk::IFaceEngineMobile::createDescriptor | ( | IArchive * | archive, |
uint32_t | flags = 0 |
||
) | [pure virtual] |
Creates and loads Descriptor from Archive.
[in] | archive | Archive with descriptor. |
[in] | flags | Archive flag. |
virtual ResultValue<FSDKError, IDescriptorBatchPtr> fsdk::IFaceEngineMobile::createDescriptorBatch | ( | int32_t | size, |
uint32_t | version = 0 |
||
) | [pure virtual] |
Creates Batch of descriptors.
face descriptor batch will be created by default, to create human descriptor batch you must pass version, minimum version of human descriptor is DV_MIN_HUMAN_DESCRIPTOR_VERSION == 102
[in] | size | - amount of descriptors in batch. |
[in] | version | - descriptor version in batch. If 0 - use dafault version from config. |
virtual ResultValue<FSDKError, IDetectorPtr> fsdk::IFaceEngineMobile::createDetector | ( | ) | [pure virtual] |
Creates a detector of given type.
virtual ResultValue<FSDKError, IDescriptorExtractorPtr> fsdk::IFaceEngineMobile::createExtractor | ( | uint32_t | version = 0 | ) | [pure virtual] |
Creates descriptor extractor.
[in] | version | descriptor version. |
face descriptor extractor will created by default, to create human descriptor extractor descriptor you must pass version, minimum version of human descriptor is DV_MIN_HUMAN_DESCRIPTOR_VERSION == 102
virtual ResultValue<FSDKError, IEyeEstimatorPtr> fsdk::IFaceEngineMobile::createEyeEstimator | ( | ) | [pure virtual] |
Creates Eye estimator.
FSDK_API ResultValue<FSDKError, IFaceEngineMobilePtr> fsdk::createFaceEngineMobile | ( | const char * | dataPath = nullptr , |
const char * | configPath = nullptr , |
||
const char * | runtimePath = nullptr |
||
) |
Create the LUNA SDK root object.
[in] | dataPath | [optional] path to folder with FSDK data. Default: ./data (on windows), /opt/visionlabs/data (on linux) |
[in] | configPath | [optional] path to faceengine.conf file. Default: <dataPath>/faceengine.cong |
[in] | runtimePath | [optional] path to runtime.conf file. Default: <dataPath>/runtime.cong |
virtual ResultValue<FSDKError, IFaceOcclusionEstimatorPtr> fsdk::IFaceEngineMobile::createFaceOcclusionEstimator | ( | ) | [pure virtual] |
Creates FaceOcclusion estimator.
virtual ResultValue<FSDKError, IGlassesEstimatorPtr> fsdk::IFaceEngineMobile::createGlassesEstimator | ( | ) | [pure virtual] |
Creates Glasses estimator.
virtual ResultValue<FSDKError, IHeadPoseEstimatorPtr> fsdk::IFaceEngineMobile::createHeadPoseEstimator | ( | ) | [pure virtual] |
Creates Head pose estimator.
virtual ResultValue<FSDKError, ILivenessDepthRGBEstimatorPtr> fsdk::IFaceEngineMobile::createLivenessDepthRGBEstimator | ( | ) | [pure virtual] |
Creates Liveness Depth+RGB estimator.
virtual ResultValue<FSDKError, ILivenessOneShotRGBEstimatorPtr> fsdk::IFaceEngineMobile::createLivenessOneShotRGBEstimator | ( | ) | [pure virtual] |
Creates Liveness OneShot estimator.
virtual ResultValue<FSDKError, IDescriptorMatcherPtr> fsdk::IFaceEngineMobile::createMatcher | ( | uint32_t | version = 0 | ) | [pure virtual] |
Creates descriptor matcher.
[in] | version | descriptor version. |
face descriptor matcher will created by default, to create human descriptor matcher you must pass version, minimum version of human descriptor is DV_MIN_HUMAN_DESCRIPTOR_VERSION == 102
virtual ResultValue<FSDKError, IMedicalMaskEstimatorPtr> fsdk::IFaceEngineMobile::createMedicalMaskEstimator | ( | ) | [pure virtual] |
Creates MedicalMask estimator.
virtual ResultValue<FSDKError, IMouthEstimatorPtr> fsdk::IFaceEngineMobile::createMouthEstimator | ( | ) | [pure virtual] |
Creates Mouth estimator.
virtual ResultValue<FSDKError, INIRLivenessEstimatorPtr> fsdk::IFaceEngineMobile::createNIRLivenessEstimator | ( | const NIRLivenessMode | mode = NIRLivenessMode::Default | ) | [pure virtual] |
Creates NIRLiveness estimator.
[in] | mode | is the option to set estimation scenario. |
[in] | launchOptions | launch options for fine grained control over target device resources. |
virtual ResultValue<FSDKError, IQualityEstimatorPtr> fsdk::IFaceEngineMobile::createQualityEstimator | ( | ) | [pure virtual] |
Creates Quality estimator.
FSDK_API fsdk::ResultValue< fsdk::FSDKError, fsdk::ISettingsProviderPtr > fsdk::createSettingsProvider | ( | const char * | path | ) |
Create a settings provider.
Creates a settings provider.
[in] | path | configuration file path. |
[in] | path | configuration file path |
FSDK_API ResultValue< FSDKError, ISettingsProviderPtr > fsdk::createSettingsProviderFromString | ( | const char * | content | ) |
Creates a settings provider from the xml-formatted string.
[in] | content | content string in xml-format, in a case of nullptr empty config will be created |
virtual ResultValue<FSDKError, IWarperPtr> fsdk::IFaceEngineMobile::createWarper | ( | ) | [pure virtual] |
Creates warper.
virtual const char* fsdk::IFaceEngineMobile::getDataDirectory | ( | ) | const [pure virtual] |
Gets data directory.
By default is set to "./data".
virtual FaceEngineEdition fsdk::IFaceEngineMobile::getFaceEngineEdition | ( | ) | const [pure virtual] |
Get LUNA SDK ditribution edition.
virtual ILicense* fsdk::IFaceEngineMobile::getLicense | ( | ) | const [pure virtual] |
Get current License object, which was set for FaceEngine object.
virtual ISettingsProvider* fsdk::IFaceEngineMobile::getRuntimeSettingsProvider | ( | ) | const [pure virtual] |
Gets runtime settings provider.
virtual ISettingsProvider* fsdk::IFaceEngineMobile::getSettingsProvider | ( | ) | const [pure virtual] |
Gets settings provider.
virtual void fsdk::IFaceEngineMobile::setDataDirectory | ( | const char * | path | ) | [pure virtual] |
Sets data directory.
[in] | path | path to data directory. |
virtual void fsdk::IFaceEngineMobile::setRuntimeSettingsProvider | ( | ISettingsProvider * | provider | ) | [pure virtual] |
Sets runtime settings provider.
[in] | provider | runtime settings provider. |
virtual void fsdk::IFaceEngineMobile::setSettingsProvider | ( | ISettingsProvider * | provider | ) | [pure virtual] |
Sets settings provider.
[in] | provider | settings provider. |