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

ILicense.h
1 #pragma once
2
3 #include "IObject.h"
4 #include <fsdk/FSDKError.h>
5
6 namespace fsdk {
7
8 #ifndef DOXYGEN_SHOULD_SKIP_THIS
9 DECLARE_SMARTPTR(ILicense);
10 #endif
11
15 enum class LicenseFeature : uint32_t {
16 Detection = 1,
17 BestShot = 2,
18 Attributes = 3,
19 Emotions = 4,
20 FaceFeatures = 5,
21 Liveness = 6,
22 Descriptor = 7,
23 DescriptorIndex = 8,
24 LivenessEngine = 9,
25 TrackEngine = 10,
26 HumanDetection = 11,
27 PPEDetection = 17,
28 MobileLiveness = 18,
29 MedicalMaskDetection = 19,
30 ReIdDescriptor = 20,
31 ISOCheck = 21
32 };
33
38 struct ILicense : IRefCounted {
46 virtual ResultValue<FSDKError, bool> checkFeatureId(LicenseFeature feature) const noexcept = 0;
47
54 virtual ResultValue<FSDKError, bool> isActivated() const noexcept = 0;
55
62 virtual Result<FSDKError>
63 FSDK_DEPRECATED("loadFromFile is deprecated since v.5.5.0,"
64 " Use loadFromFile(const char* path, const ISettingsProvider* settings) instead")
65 loadFromFile(const char* path) noexcept = 0;
66
74 virtual Result<FSDKError> loadFromFile(const char* path, const ISettingsProvider* settings) noexcept = 0;
75
82 virtual Result<FSDKError> saveToFile(const char * path) const noexcept = 0;
83
92 virtual ResultValue<FSDKError, uint32_t> getExpirationDate(LicenseFeature feature) const noexcept = 0;
93 };
94 }
fsdk::FSDKError
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::ILicense::getExpirationDate
virtual ResultValue< FSDKError, uint32_t > getExpirationDate(LicenseFeature feature) const noexcept=0
Gets license expiration date.
IObject.h
Object system types and interfaces.
fsdk::ILicense
License objects interface.
Definition: ILicense.h:38
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::LicenseFeature
LicenseFeature
License features.
Definition: ILicense.h:15
fsdk::ILicense::FSDK_DEPRECATED
virtual Result< FSDKError > FSDK_DEPRECATED("loadFromFile is deprecated since v.5.5.0," " Use loadFromFile(const char* path, const ISettingsProvider* settings) instead") loadFromFile(const char *path) noexcept=0
Loads license from file.
fsdk::ISettingsProvider
SDK settings provider interface.
Definition: ISettingsProvider.h:32
fsdk::ILicense::saveToFile
virtual Result< FSDKError > saveToFile(const char *path) const noexcept=0
Saves license as raw format to the file. This file could be used in the next run of the application.
fsdk::Detection
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::ILicense::checkFeatureId
virtual ResultValue< FSDKError, bool > checkFeatureId(LicenseFeature feature) const noexcept=0
Checks if the feature with featureId is available in this license.
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:30
fsdk::ILicense::isActivated
virtual ResultValue< FSDKError, bool > isActivated() const noexcept=0
Checks if current license object is activated and could be used by FaceEngine.
fsdk::ILicense::loadFromFile
virtual Result< FSDKError > loadFromFile(const char *path, const ISettingsProvider *settings) noexcept=0
Loads license from file.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types.
Definition: ResultValue.h:25