10 #include <fsdk/Types/Result.h>
54 UnsupportedFunctionality,
78 static bool isOk(
FSDKError error) noexcept {
82 static const char* toString(
FSDKError error) noexcept {
87 return "Internal error";
89 return "Invalid input";
91 return "Invalid image";
93 return "Invalid rectangle";
95 return "Invalid image format";
97 return "Invalid image size";
99 return "Invalid detection";
101 return "Invalid landmarks 5";
103 return "Invalid landmarks 68";
105 return "Invalid transformation.";
107 return "Invalid descriptor";
109 return "Invalid descriptor batch.";
111 return "Invalid settings provider..";
113 return "Invalid descriptor id.";
115 return "Invalid path.";
117 return "Invalid serialized object.";
119 return "Module is not initialized";
121 return "Module is not ready";
123 return "Licensing issue";
125 return "Buffer is null";
127 return "Buffer is full";
129 return "Buffer is empty";
131 return "Invalid buffer size";
133 return "Invalid span size";
135 return "Invalid Batch";
137 return "Descriptors are incompatible";
139 return "Attempt to create feature while betaMode is turned off";
141 return "Cant aggregate descriptors - all images'a GSs are less the threashold";
143 return "Something gone wrong in batched query";
144 case FSDKError::UnsupportedFunctionality:
145 return "Was requested unsupported functionality";
146 case FSDKError::HighMemoryUsage:
147 return "Operation required a lot of memory";
149 return "Incompatible model versions";
151 return "Model not loaded";
153 return "Invalid config";
155 return "License is not activated!";
157 return "Requested Feature not available.";
159 return "Feature is expired.";
161 return "Failed to get device fingerprint.";
163 return "Failed validation.";
165 return "Not implemented.";
167 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.