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
IFishEyeEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 
6 #include <fsdk/Types/Image.h>
7 #include <fsdk/Types/Result.h>
8 #include <fsdk/Types/Span.h>
9 
10 namespace fsdk {
11 
12 #ifndef DOXYGEN_SHOULD_SKIP_THIS
13  DECLARE_SMARTPTR(IFishEyeEstimator);
14 #endif
15 
25  enum class FishEye {
26  NoFishEyeEffect = 0,
27  FishEyeEffect = 1
28  };
29 
38  float score;
39  };
40 
55  virtual Result<FSDKError>
56  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped image instead!")
57  estimate(
58  const Image& image,
59  const Detection& detection,
60  FishEyeEstimation& estimation) const noexcept = 0;
61 
73  virtual Result<FSDKError>
74  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped images instead!")
75  estimate(
76  Span<const Image> images,
77  Span<const Detection> detections,
78  Span<FishEyeEstimation> estimations) const noexcept = 0;
79 
88  virtual Result<FSDKError>
89  estimate(const Image& warp,
90  FishEyeEstimation& estimation) const noexcept = 0;
91 
102  virtual Result<FSDKError>
103  estimate(
104  Span<const Image> warps,
105  Span<FishEyeEstimation> estimations) const noexcept = 0;
106 
118  virtual Result<FSDKError>
119  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use validation by warped images instead!")
120  validate(
121  Span<const Image> images,
122  Span<const Detection> detections,
123  Span<Result<FSDKError>> errors) const noexcept = 0;
124 
135  virtual Result<FSDKError> validate(
136  Span<const Image> warps,
137  Span<Result<FSDKError>> errors) const noexcept = 0;
138  };
140 } // namespace fsdk
FishEye
FishEye estimator output enum. This enum contains all possible estimation results.
Definition: IFishEyeEstimator.h:25
#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
FishEye estimator interface.
Definition: IFishEyeEstimator.h:45
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detections, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Object system types and interfaces.
Common SDK error codes.
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, FishEyeEstimation &estimation) const noexcept=0
Estimate fisheye effect probability.
Base strong reference counted object interface.
Definition: IRefCounted.h:36
with fish eye effect
float score
fish eye effect score
Definition: IFishEyeEstimator.h:38
Image.
Definition: Image.h:39
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
FishEye result
estimation result (
Definition: IFishEyeEstimator.h:37
FishEye estimator output structure. This structure contains the result of estimation (...
Definition: IFishEyeEstimator.h:36