| Face Engine SDK 4.7.0 A face detection, recognition and tracking engine.

FSDKError.h
Go to the documentation of this file.
1
8 #pragma once
9
10 #include <fsdk/Types/Result.h>
11
12 namespace fsdk {
13
17 enum class FSDKError : uint32_t {
18 Ok,
19 Internal,
20 InvalidInput,
21 InvalidImage,
22
23 InvalidRect,
24 InvalidImageFormat,
25 InvalidImageSize,
26 InvalidDetection,
27 InvalidLandmarks5,
28 InvalidLandmarks68,
29 InvalidTransformation,
30 InvalidDescriptor,
31 InvalidDescriptorBatch,
32 InvalidSettingsProvider,
33
34 ModuleNotInitialized,
35 ModuleNotReady,
36 LicenseError,
37
38 BufferIsNull,
39 BufferIsFull,
40 BufferIsEmpty,
41 InvalidBufferSize,
42
43 IncompatibleDescriptors,
44 EnableJustInBetaMode,
45
46 FiltredAggregationError,
47
48 BatchedInternalError,
49 UnsupportedFunctionality, // !< was requested unsupported functionality for this type of descroptor or for this model version
50
51 HighMemoryUsage, // !< Operation required a lot of memory. Batch size if too big for example.
52
53 IncompatibleModelVersions
54 };
55
59 template<>
60 struct ErrorTraits<FSDKError> {
61
62 static bool isOk(FSDKError error) noexcept {
63 return error == FSDKError::Ok;
64 }
65
66 static const char* toString (FSDKError error) noexcept {
67 switch(error) {
68 case FSDKError::Ok: return "Ok";
69 case FSDKError::Internal: return "Internal error";
70 case FSDKError::InvalidRect: return "Invalid rectangle";
71 case FSDKError::BufferIsFull: return "Buffer is full";
72 case FSDKError::InvalidImage: return "Invalid image";
73 case FSDKError::InvalidInput: return "Invalid input";
74 case FSDKError::BufferIsNull: return "Buffer is null";
75 case FSDKError::LicenseError: return "Licensing issue";
76 case FSDKError::BufferIsEmpty: return "Buffer is empty";
77 case FSDKError::ModuleNotReady: return "Module is not ready";
78 case FSDKError::InvalidImageSize: return "Invalid image size";
79 case FSDKError::InvalidDetection: return "Invalid detection";
80 case FSDKError::InvalidDescriptor: return "Invalid descriptor";
81 case FSDKError::InvalidLandmarks5: return "Invalid landmarks 5";
82 case FSDKError::InvalidBufferSize: return "Invalid buffer size";
83 case FSDKError::InvalidLandmarks68: return "Invalid landmarks 68";
84 case FSDKError::InvalidImageFormat: return "Invalid image format";
85 case FSDKError::ModuleNotInitialized: return "Module is not initialized";
86 case FSDKError::InvalidTransformation: return "Invalid transformation";
87 case FSDKError::InvalidDescriptorBatch: return "Invalid descriptor batch";
88 case FSDKError::InvalidSettingsProvider: return "Invalid settings provider";
89 case FSDKError::IncompatibleDescriptors: return "Descriptors are incompatible";
90 case FSDKError::EnableJustInBetaMode: return "Attempt to create feature while betaMode is turned off";
91 case FSDKError::FiltredAggregationError: return "Cant aggregate descriptors - all images'a GSs are less the threashold";
92 default: return "Unknown error";
93 }
94 }
95 };
96
97 }
fsdk::FSDKError::InvalidDescriptor
Invalid descriptor.
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::FSDKError::FiltredAggregationError
Cant aggregate descriptors - all images&#39;a GSs are less the threashold.
fsdk::FSDKError::IncompatibleDescriptors
Matching attempt with incompatible descriptors.
fsdk::FSDKError::InvalidInput
Invalid input.
fsdk::FSDKError::InvalidDescriptorBatch
Invalid descriptor batch.
fsdk::FSDKError::BufferIsEmpty
Buffer is empty.
fsdk::FSDKError::InvalidSettingsProvider
Invalid settings provider.
fsdk::FSDKError::InvalidImageFormat
Invalid image format.
fsdk::FSDKError::ModuleNotReady
Module is not ready.
fsdk::FSDKError::Internal
Internal error.
fsdk::ErrorTraits
Definition: Result.h:9
fsdk::FSDKError::InvalidTransformation
Invalid transformation.
fsdk::FSDKError::InvalidLandmarks5
Invalid landmarks 5.
fsdk::FSDKError::Ok
Ok.
fsdk::FSDKError::InvalidBufferSize
Invalid buffer size.
fsdk::FSDKError::BufferIsFull
Buffer is full.
fsdk::FSDKError::InvalidDetection
Invalid detection.
fsdk::FSDKError::InvalidImage
Invalid image.
fsdk::FSDKError::LicenseError
Licensing issue (expired license or unavailable feature).
fsdk::FSDKError::IncompatibleModelVersions
Incompatible model versions.
fsdk::FSDKError::ModuleNotInitialized
Module is not initialized.
fsdk::FSDKError::InvalidLandmarks68
Invalid landmarks 68.
fsdk::FSDKError
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
fsdk::FSDKError::InvalidRect
Invalid rectangle.
fsdk::FSDKError::InvalidImageSize
Invalid image size.
fsdk::FSDKError::BufferIsNull
Buffer is null.
fsdk::FSDKError::EnableJustInBetaMode
Attempt to create feature while betaMode is turned off.
fsdk::FSDKError::BatchedInternalError
Something gone wrong in batched query. See batch with error codes to each input image for details...