Face Engine SDK  4.6.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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,
33 
36  LicenseError,
37 
38  BufferIsNull,
39  BufferIsFull,
42 
45 
47 
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 
54  };
55 
59  template<>
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 }
Cant aggregate descriptors - all images&#39;a GSs are less the threashold.
Matching attempt with incompatible descriptors.
Invalid descriptor batch.
Invalid settings provider.
Module is not ready.
Definition: Result.h:9
Licensing issue (expired license or unavailable feature).
Incompatible model versions.
Module is not initialized.
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
Invalid rectangle.
Attempt to create feature while betaMode is turned off.
Something gone wrong in batched query. See batch with error codes to each input image for details...