Face Engine SDK  5.13.0
A face detection, recognition and tracking engine.
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 
20  enum class FishEye {
21  NoFishEyeEffect = 0,
22  FishEyeEffect = 1
23  };
24 
33  float score;
34  };
35 
50  virtual Result<FSDKError>
51  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped image instead!")
52  estimate(
53  const Image& image,
54  const Detection& detection,
55  FishEyeEstimation& estimation) const noexcept = 0;
56 
68  virtual Result<FSDKError>
69  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped images instead!")
70  estimate(
71  Span<const Image> images,
72  Span<const Detection> detections,
73  Span<FishEyeEstimation> estimations) const noexcept = 0;
74 
83  virtual Result<FSDKError>
84  estimate(const Image& warp,
85  FishEyeEstimation& estimation) const noexcept = 0;
86 
97  virtual Result<FSDKError>
98  estimate(
99  Span<const Image> warps,
100  Span<FishEyeEstimation> estimations) const noexcept = 0;
101 
113  virtual Result<FSDKError>
114  FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use validation by warped images instead!")
115  validate(
116  Span<const Image> images,
117  Span<const Detection> detections,
118  Span<Result<FSDKError>> errors) const noexcept = 0;
119 
130  virtual Result<FSDKError> validate(
131  Span<const Image> warps,
132  Span<Result<FSDKError>> errors) const noexcept = 0;
133  };
134 
135 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
SDK namespace.
Definition: IAGSEstimator.h:8
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
FishEye estimator interface.
Definition: IFishEyeEstimator.h:40
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:33
Image.
Definition: Image.h:38
FishEye
FishEye estimator output enum. This enum contains all possible estimation results.
Definition: IFishEyeEstimator.h:20
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:32
FishEye estimator output structure. This structure contains the result of estimation (...
Definition: IFishEyeEstimator.h:31