10#include <fsdk/Types/Result.h>
55 UnsupportedFunctionality,
80 static bool isOk(
FSDKError error)
noexcept {
84 static const char* toString(
FSDKError error)
noexcept {
89 return "Internal error";
91 return "Invalid input";
93 return "Invalid image";
95 return "Invalid rectangle";
97 return "Invalid image format";
99 return "Invalid image size";
101 return "Invalid detection";
103 return "Invalid landmarks 5";
105 return "Invalid landmarks 68";
107 return "Invalid transformation.";
109 return "Invalid descriptor";
111 return "Invalid descriptor batch.";
113 return "Invalid settings provider..";
115 return "Invalid descriptor id.";
117 return "Invalid path.";
119 return "Invalid serialized object.";
121 return "Module is not initialized";
123 return "Module is not ready";
125 return "Licensing issue";
127 return "Buffer is null";
129 return "Buffer is full";
131 return "Buffer is empty";
133 return "Invalid buffer size";
135 return "Invalid span size";
137 return "Invalid Batch";
139 return "Descriptors are incompatible";
141 return "Attempt to create feature while betaMode is turned off";
143 return "Cant aggregate descriptors - all images'a GSs are less the threashold";
145 return "Something gone wrong in batched query";
146 case FSDKError::UnsupportedFunctionality:
147 return "Was requested unsupported functionality";
148 case FSDKError::HighMemoryUsage:
149 return "Operation required a lot of memory";
151 return "Incompatible model versions";
153 return "Model not loaded";
155 return "Invalid config";
157 return "License is not activated!";
159 return "License activation limit exceeded.";
161 return "Requested Feature not available.";
163 return "Feature is expired.";
165 return "Failed to get device fingerprint.";
167 return "Failed validation.";
171 return "Not implemented.";
173 return "Unknown error";
SDK namespace.
Definition IAGSEstimator.h:8
FSDKError
Common SDK error codes.
Definition FSDKError.h:17
@ BatchedInternalError
image for details.
@ InvalidImage
Invalid image.
@ EnableJustInBetaMode
Attempt to create feature while betaMode is turned off.
@ InvalidBatch
Invalid batch.
@ ValidationFailed
Failed validation.
@ InvalidDescriptorId
Invalid descriptor id.
@ InvalidTransformation
Invalid transformation.
@ LicenseIsNotActivated
License is not activated.
@ LicenseError
Licensing issue (expired license or unavailable feature).
@ ModuleNotInitialized
Module is not initialized.
@ InvalidBufferSize
Invalid buffer size.
@ BufferIsEmpty
Buffer is empty.
@ BufferIsFull
Buffer is full.
@ FiltredAggregationError
Cant aggregate descriptors - all images'a GSs are less the threashold.
@ FingerprintError
Failed to get device fingerprint.
@ InvalidRect
Invalid rectangle.
@ InvalidImageFormat
Invalid image format.
@ InvalidImageSize
Invalid image size.
@ InvalidDescriptor
Invalid descriptor.
@ InvalidPath
Invalid path to object.
@ InvalidLandmarks68
Invalid landmarks 68.
@ InvalidConfig
Invalid config.
@ ModelNotLoaded
Model not loaded.
@ InvalidDescriptorBatch
Invalid descriptor batch.
@ FeatureExpired
Feature expired.
@ InvalidDetection
Invalid detection.
@ IncompatibleDescriptors
Matching attempt with incompatible descriptors.
@ NotImplemented
Not implemented error.
@ InvalidSpanSize
Invalid span size.
@ Internal
Internal error.
@ InvalidSettingsProvider
Invalid settings provider.
@ InvalidLandmarks5
Invalid landmarks 5.
@ IncompatibleModelVersions
Incompatible model versions.
@ InvalidInput
Invalid input.
@ ModuleNotReady
Module is not ready.
@ BufferIsNull
Buffer is null.
@ InvalidSerializedObject
Invalid serialized object.
@ LicenseActivationLimitExceeded
License activation limit exceeded.
@ FeatureNotAvailable
Requested Feature not available.