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
IBackgroundEstimator.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(IBackgroundEstimator);
14 #endif
15 
25  enum class BackgroundStatus : uint8_t {
26  NonSolid = 0,
27  Solid = 1
28  };
29 
40  };
41 
47 
58  const Image& image,
59  const Detection& detection,
60  BackgroundEstimation& estimation) const noexcept = 0;
61 
74  Span<const Image> images,
75  Span<const Detection> detections,
76  Span<BackgroundEstimation> estimations) const noexcept = 0;
77 
90  Span<const Image> images,
91  Span<const Detection> detection,
92  Span<Result<FSDKError>> errors) const noexcept = 0;
93  };
94 
96 } // namespace fsdk
#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
BackgroundStatus
Background estimator output enum. This enum contains all possible estimation results.
Definition: IBackgroundEstimator.h:25
Object system types and interfaces.
Background estimator output structure. This structure contains the result of estimation and probabili...
Definition: IBackgroundEstimator.h:36
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
BackgroundStatus status
estimation result (
Definition: IBackgroundEstimator.h:37
Image.
Definition: Image.h:38
float backgroundScore
value in range [0, 1], where 1 - is uniform background, 0 - is non uniform.
Definition: IBackgroundEstimator.h:38
Background estimator interface.
Definition: IBackgroundEstimator.h:46
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detection, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, BackgroundEstimation &estimation) const noexcept=0
Estimates background status probability.
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
float backgroundColorScore
value in range [0, 1], where 1 - is light background, 0 - is too dark.
Definition: IBackgroundEstimator.h:39