Face Engine SDK  5.21.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  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped image instead!")
57  const Image& image,
58  const Detection& detection,
59  FishEyeEstimation& estimation) const noexcept = 0;
60 
72  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped images instead!")
74  Span<const Image> images,
75  Span<const Detection> detections,
76  Span<FishEyeEstimation> estimations) const noexcept = 0;
77 
86  virtual Result<FSDKError> estimate(const Image& warp, FishEyeEstimation& estimation) const noexcept = 0;
87 
98  virtual Result<FSDKError>
99  estimate(Span<const Image> warps, Span<FishEyeEstimation> estimations) const noexcept = 0;
100 
112  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use validation by warped images instead!")
113  virtual Result<FSDKError> validate(
114  Span<const Image> images,
115  Span<const Detection> detections,
116  Span<Result<FSDKError>> errors) const noexcept = 0;
117 
128  virtual Result<FSDKError>
129  validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
130  };
131 
133 } // 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:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
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:37
with fish eye effect
float score
fish eye effect score
Definition: IFishEyeEstimator.h:38
Image.
Definition: Image.h:38
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