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

ILicense.h
1 #pragma once
2
3 #include "IObject.h"
4
5 namespace fsdk {
6
7 #ifndef DOXYGEN_SHOULD_SKIP_THIS
8 DECLARE_SMARTPTR(ILicense);
9 #endif
10
14 enum class LicenseFeature : uint32_t {
15 Detection = 1,
16 BestShot = 2,
17 Attributes = 3,
18 Emotions = 4,
19 FaceFeatures = 5,
20 Liveness = 6,
21 Descriptor = 7,
22 DescriptorIndex = 8,
23 LivenessEngine = 9,
24 TrackEngine = 10,
25 HumanDetection = 11,
26 MedicalMaskDetection = 19,
27 };
28
33 struct ILicense : IRefCounted {
34
35 /*
36 * @brief Checks if the feature with featureId is available in this license.
37 * @return true if feature is available, false if there is not such feature in this
38 * license or feature is expired or license was not activated.
39 */
40 virtual bool checkFeatureId(uint32_t featureId) const noexcept = 0;
41
42 /*
43 * @brief Checks if current license object is activated and could be used by FaceEngine.
44 * @return true if object is activated.
45 * @note License object which was not activated could not be used because all features are disabled by default.
46 */
47 virtual bool isActivated() const noexcept = 0;
48
49 /*
50 * @brief Loads license from file.
51 * @param [in] path path to the file.
52 * @return true if license was read from file successfully.
53 */
54 virtual bool loadFromFile(const char* path) noexcept = 0;
55
56 /*
57 * @brief Saves license as raw format to the file. This file could be used in the next run of the application.
58 * @param [in] path path to the file.
59 * @return true if license was saved to file successfully.
60 */
61 virtual bool saveToFile(const char * path) const noexcept = 0;
62
63 /*
64 * @brief Returns Unix Timestamp
65 * @param [out] timeStamp the result value
66 * @return true there is valid values, false otherwise.
67 * @note License settings should be set before using this method!
68 * @note License should be activated before calling this method!
69 */
70 virtual bool getExpirationDate(uint32_t feature, uint32_t &timeStamp) const noexcept = 0;
71 };
72 }
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
IObject.h
Object system types and interfaces.
fsdk::ILicense
License objects interface.
Definition: ILicense.h:33
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::LicenseFeature
LicenseFeature
License features.
Definition: ILicense.h:14
fsdk::BaseDetection
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10