Face Engine SDK 5.31.0
A face detection, recognition and tracking engine.
Loading...
Searching...
No Matches
FSDKError.h
Go to the documentation of this file.
1
8#pragma once
9
10#include <fsdk/Types/Result.h>
11
12namespace fsdk {
13
17 enum class FSDKError : uint32_t {
18 Ok,
19 Internal,
22
36
40
47
50
52
55 UnsupportedFunctionality, // !< was requested unsupported functionality for this type of descroptor or for
56 // this model version
57
58 HighMemoryUsage, // !< Operation required a lot of memory. Batch size if too big for example.
59
70 CudaError,
71
73 };
74
78 template <>
80
81 static bool isOk(FSDKError error) noexcept {
82 return error == FSDKError::Ok;
83 }
84
85 static const char* toString(FSDKError error) noexcept {
86 switch(error) {
87 case FSDKError::Ok:
88 return "Ok";
90 return "Internal error";
92 return "Invalid input";
94 return "Invalid image";
96 return "Invalid rectangle";
98 return "Invalid image format";
100 return "Invalid image size";
102 return "Invalid detection";
104 return "Invalid landmarks 5";
106 return "Invalid landmarks 68";
108 return "Invalid transformation.";
110 return "Invalid descriptor";
112 return "Invalid descriptor batch.";
114 return "Invalid settings provider..";
116 return "Invalid descriptor id.";
118 return "Invalid path.";
120 return "Invalid serialized object.";
122 return "Module is not initialized";
124 return "Module is not ready";
126 return "Licensing issue";
128 return "Buffer is null";
130 return "Buffer is full";
132 return "Buffer is empty";
134 return "Invalid buffer size";
136 return "Invalid span size";
138 return "Invalid Batch";
140 return "Descriptors are incompatible";
142 return "Attempt to create feature while betaMode is turned off";
144 return "Cant aggregate descriptors - all images'a GSs are less the threashold";
146 return "Something gone wrong in batched query";
147 case FSDKError::UnsupportedFunctionality:
148 return "Was requested unsupported functionality";
149 case FSDKError::HighMemoryUsage:
150 return "Operation required a lot of memory";
152 return "Incompatible model versions";
154 return "Model not loaded";
156 return "Invalid config";
158 return "License is not activated!";
160 return "License activation limit exceeded.";
162 return "Requested Feature not available.";
164 return "Feature is expired.";
166 return "Failed to get device fingerprint.";
168 return "Fingerprint mismatch.";
170 return "Failed validation.";
172 return "CUDA Error";
174 return "Not implemented.";
175 default:
176 return "Unknown error";
177 }
178 }
179 };
180
181} // namespace fsdk
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.
@ FingerprintInternalMismatch
Fingerprint mismatch.
@ 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.
@ CudaError
CUDA Error.
@ 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.
Definition Result.h:8