| Face Engine SDK 5.2.0 A face detection, recognition and tracking engine.

IAGSEstimator.h
1 #pragma once
2
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7
8 namespace fsdk {
9
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11 DECLARE_SMARTPTR(IAGSEstimator);
12 #endif
13
18 struct IAGSEstimator : IRefCounted {
25 virtual ResultValue<FSDKError, float>
26 FSDK_DEPRECATED("AGSEstimator is deprecated since v.5.0.1, use BestShotQualityEstimator instead")
27 estimate(
28 const Image& image,
29 const Detection& detection) const noexcept = 0;
30
41 virtual Result<FSDKError>
42 FSDK_DEPRECATED("AGSEstimator is deprecated since v.5.0.1, use BestShotQualityEstimator instead")
43 estimate(
44 Span<const Image> images,
45 Span<const Detection> detections,
46 Span<float> out) const noexcept = 0;
47
56 virtual Result<FSDKError>
57 FSDK_DEPRECATED("AGSEstimator is deprecated since v.5.0.1, use BestShotQualityEstimator instead")
58 validate(
59 Span<const Image> images,
60 Span<const Detection> detections,
61 Span<Result<FSDKError>> errors) const noexcept = 0;
62 };
63
64 } // namespace fsdk
fsdk::Span
Span. @detail Not owning data view. It incapsulated pointer to the continuous array with one or more ...
Definition: Span.h:15
fsdk::FSDKError
FSDKError
Common SDK error codes.
Definition: FSDKError.h:17
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::IAGSEstimator::estimate
virtual ResultValue< FSDKError, float > estimate(const Image &image, const Detection &detection) const noexcept=0
Estimate the ags.
fsdk::IAGSEstimator::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.
fsdk::Detection
Detection structure. @detail Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:30
fsdk::IAGSEstimator
Approximate Garbage Score estimator interface.
Definition: IAGSEstimator.h:18
fsdk::Image
Image.
Definition: Image.h:37
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::ResultValue
Addon for Result to output some value aside the result. Specialization for copiable types.
Definition: ResultValue.h:21