Face Engine SDK  5.14.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IBlackWhiteEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7 
8 namespace fsdk {
9 
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11  DECLARE_SMARTPTR(IBlackWhiteEstimator);
12 #endif
13 
33 
34  float colorScore;
35  float infraredScore;
36 
40  enum class ImageColorType : uint8_t {
41  Color = 0,
42  Grayscale,
43  Infrared,
44  };
45 
46  ImageColorType colorType;
47  };
48 
58  virtual Result<FSDKError>
59  FSDK_DEPRECATED("This method is deprecated since v.5.6.0, use estimation by warped image instead!")
60  estimate(
61  const Image& image,
62  bool& outIsGrayscale) const noexcept = 0;
63 
73  const Image& warp,
74  ImageColorEstimation& estimation) const noexcept = 0;
75 
86  virtual Result<FSDKError>
87  estimate(
88  Span<const Image> warps,
89  Span<ImageColorEstimation> estimations) const noexcept = 0;
90 
101  virtual Result<FSDKError>
102  validate(
103  Span<const Image> warps,
104  Span<Result<FSDKError>> errors) const noexcept = 0;
105  };
107 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
Common data types and structures.
float colorScore
0(grayscale)..1(color);
Definition: IBlackWhiteEstimator.h:34
virtual Result< FSDKError > estimate(const Image &image, bool &outIsGrayscale) const noexcept=0
Check if image is grayscale or color.
Object system types and interfaces.
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
ImageColorType
Enumeration of possible image color types.
Definition: IBlackWhiteEstimator.h:40
Image.
Definition: Image.h:39
Definition: IBlackWhiteEstimator.h:49
Image color type estimator interface.
Definition: IBlackWhiteEstimator.h:32
float infraredScore
0(infrared)..1(not infrared);
Definition: IBlackWhiteEstimator.h:35
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14