| Face Engine SDK 5.12.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
31 struct FishEyeEstimation {
32 FishEye result;
33 float score;
34 };
35
40 struct IFishEyeEstimator : IRefCounted {
50 virtual Result<FSDKError> estimate(
51 const Image& image,
52 const Detection& detection,
53 FishEyeEstimation& estimation) const noexcept = 0;
54
66 virtual Result<FSDKError> estimate(
67 Span<const Image> images,
68 Span<const Detection> detections,
69 Span<FishEyeEstimation> estimations) const noexcept = 0;
70
80 virtual Result<FSDKError>
81 estimate(const Image& warp,
82 FishEyeEstimation& estimation) const noexcept = 0;
83
95 virtual Result<FSDKError>
96 estimate(
97 Span<const Image> warps,
98 Span<FishEyeEstimation> estimations) const noexcept = 0;
99
111 virtual Result<FSDKError> validate(
112 Span<const Image> images,
113 Span<const Detection> detections,
114 Span<Result<FSDKError>> errors) const noexcept = 0;
115
126 virtual Result<FSDKError> validate(
127 Span<const Image> warps,
128 Span<Result<FSDKError>> errors) const noexcept = 0;
129 };
130
131 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:29
fsdk::IFishEyeEstimator
FishEye estimator interface.
Definition: IFishEyeEstimator.h:40
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:36
fsdk::FishEye::NoFishEyeEffect
no fish eye effect
fsdk::FishEye::FishEyeEffect
with fish eye effect
fsdk::FishEyeEstimation::score
float score
fish eye effect score
Definition: IFishEyeEstimator.h:33
fsdk::Image
Image.
Definition: Image.h:38
fsdk::FishEye
FishEye
FishEye estimator output enum. This enum contains all possible estimation results.
Definition: IFishEyeEstimator.h:20
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:32
fsdk::FishEyeEstimation
FishEye estimator output structure. This structure contains the result of estimation (...
Definition: IFishEyeEstimator.h:31