10 #include <fsdk/Types/Result.h>
54 UnsupportedFunctionality,
79 static bool isOk(
FSDKError error) noexcept {
83 static const char* toString(
FSDKError error) noexcept {
88 return "Internal error";
90 return "Invalid input";
92 return "Invalid image";
94 return "Invalid rectangle";
96 return "Invalid image format";
98 return "Invalid image size";
100 return "Invalid detection";
102 return "Invalid landmarks 5";
104 return "Invalid landmarks 68";
106 return "Invalid transformation.";
108 return "Invalid descriptor";
110 return "Invalid descriptor batch.";
112 return "Invalid settings provider..";
114 return "Invalid descriptor id.";
116 return "Invalid path.";
118 return "Invalid serialized object.";
120 return "Module is not initialized";
122 return "Module is not ready";
124 return "Licensing issue";
126 return "Buffer is null";
128 return "Buffer is full";
130 return "Buffer is empty";
132 return "Invalid buffer size";
134 return "Invalid span size";
136 return "Invalid Batch";
138 return "Descriptors are incompatible";
140 return "Attempt to create feature while betaMode is turned off";
142 return "Cant aggregate descriptors - all images'a GSs are less the threashold";
144 return "Something gone wrong in batched query";
145 case FSDKError::UnsupportedFunctionality:
146 return "Was requested unsupported functionality";
147 case FSDKError::HighMemoryUsage:
148 return "Operation required a lot of memory";
150 return "Incompatible model versions";
152 return "Model not loaded";
154 return "Invalid config";
156 return "License is not activated!";
158 return "Requested Feature not available.";
160 return "Feature is expired.";
162 return "Failed to get device fingerprint.";
164 return "Failed validation.";
168 return "Not implemented.";
170 return "Unknown error";
Invalid serialized object.
Cant aggregate descriptors - all images'a GSs are less the threashold.
Matching attempt with incompatible descriptors.
Invalid descriptor batch.
Invalid settings provider.
Requested Feature not available.
License is not activated.
Licensing issue (expired license or unavailable feature).
Incompatible model versions.
Module is not initialized.
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
Attempt to create feature while betaMode is turned off.
Failed to get device fingerprint.