| Face Engine SDK 5.34.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
25 enum class FishEye {
26 NoFishEyeEffect = 0,
27 FishEyeEffect = 1
28 };
29
36 struct FishEyeEstimation {
37 FishEye result;
38 float score;
39 };
40
45 struct IFishEyeEstimator : IRefCounted {
55 FSDK_DEPRECATED("This method is deprecated since v.5.13.0, use estimation by warped image instead!")
56 virtual Result<FSDKError> estimate(
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!")
73 virtual Result<FSDKError> estimate(
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
fsdk::FishEye
FishEye
FishEye estimator output enum. This enum contains all possible estimation results.
Definition: IFishEyeEstimator.h:25
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::IFishEyeEstimator
FishEye estimator interface.
Definition: IFishEyeEstimator.h:45
fsdk::FishEye::NoFishEyeEffect
no fish eye effect
fsdk::IFishEyeEstimator::validate
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.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IFishEyeEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, FishEyeEstimation &estimation) const noexcept=0
Estimate fisheye effect probability.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::FishEye::FishEyeEffect
with fish eye effect
fsdk::FishEyeEstimation::score
float score
fish eye effect score
Definition: IFishEyeEstimator.h:38
fsdk::Image
Image.
Definition: Image.h:38
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
fsdk::FishEyeEstimation::result
FishEye result
estimation result (
Definition: IFishEyeEstimator.h:37
fsdk::FishEyeEstimation
FishEye estimator output structure. This structure contains the result of estimation (...
Definition: IFishEyeEstimator.h:36