Face Engine SDK  5.25.0
A face detection, recognition and tracking engine.
include/fsdk/ILicense.h
00001 #pragma once
00002 
00003 #include <fsdk/IObject.h>
00004 #include <fsdk/FSDKError.h>
00005 
00006 namespace fsdk {
00007 
00008 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00009     DECLARE_SMARTPTR(ILicense);
00010 #endif
00011 
00015     enum class LicenseFeature : uint32_t {
00016         Detection = 1,
00017         BestShot = 2,
00018         Attributes = 3,
00019         Emotions = 4,
00020         FaceFeatures = 5,
00021         Liveness = 6,
00022         Descriptor = 7,
00023         DescriptorIndex = 8,
00024         LivenessEngine = 9,
00025         TrackEngine = 10,
00026         HumanDetection = 11,
00027         PPEDetection = 17,
00028         MobileLiveness = 18,
00029         MedicalMaskDetection = 19,
00030         ReIdDescriptor = 20,
00031         ISOCheck = 21,
00032         DeepFakeEstimation = 22,
00033         DepthRGBLiveness = 23,
00034         FightsEstimation = 24,
00035         BodyAttributes = 25,
00036         NIRLiveness = 26,
00037         DepthLiveness = 27,
00038 
00039         // extern features
00040         VirtualCameraChecker = 500
00041     };
00042 
00047     struct ILicense : IRefCounted {
00055         virtual ResultValue<FSDKError, bool> checkFeatureId(LicenseFeature feature) const noexcept = 0;
00056 
00064         virtual ResultValue<FSDKError, bool> isActivated() const noexcept = 0;
00065 
00072         FSDK_DEPRECATED("loadFromFile is deprecated since v.5.5.0,"
00073                                         " Use loadFromFile(const char* path, const ISettingsProvider* settings) instead")
00074         virtual Result<FSDKError> loadFromFile(const char* path) noexcept = 0;
00075 
00083         virtual Result<FSDKError> loadFromFile(const char* path, const ISettingsProvider* settings) noexcept = 0;
00084 
00092         virtual Result<FSDKError> saveToFile(const char* path) const noexcept = 0;
00093 
00102         virtual ResultValue<FSDKError, uint32_t> getExpirationDate(LicenseFeature feature) const noexcept = 0;
00103 
00110         virtual Result<FSDKError> getLicenseType(int& licenseType) const noexcept = 0;
00111     };
00112 } // namespace fsdk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines