| Face Engine SDK 4.9.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 PPEDetection = 17,
27 MedicalMaskDetection = 19,
28 };
29
34 struct ILicense : IRefCounted {
35
36 /*
37 * @brief Checks if the feature with featureId is available in this license.
38 * @return true if feature is available, false if there is not such feature in this
39 * license or feature is expired or license was not activated.
40 */
41 virtual bool checkFeatureId(uint32_t featureId) const noexcept = 0;
42
43 /*
44 * @brief Checks if current license object is activated and could be used by FaceEngine.
45 * @return true if object is activated.
46 * @note License object which was not activated could not be used because all features are disabled by default.
47 */
48 virtual bool isActivated() const noexcept = 0;
49
50 /*
51 * @brief Loads license from file.
52 * @param [in] path path to the file.
53 * @return true if license was read from file successfully.
54 */
55 virtual bool loadFromFile(const char* path) noexcept = 0;
56
57 /*
58 * @brief Saves license as raw format to the file. This file could be used in the next run of the application.
59 * @param [in] path path to the file.
60 * @return true if license was saved to file successfully.
61 */
62 virtual bool saveToFile(const char * path) const noexcept = 0;
63
64 /*
65 * @brief Returns Unix Timestamp
66 * @param [out] timeStamp the result value
67 * @return true there is valid values, false otherwise.
68 * @note License settings should be set before using this method!
69 * @note License should be activated before calling this method!
70 */
71 virtual bool getExpirationDate(uint32_t feature, uint32_t &timeStamp) const noexcept = 0;
72 };
73 }
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:34
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