| Face Engine SDK 4.9.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 estimate(
27 const fsdk::Image& image,
28 const fsdk::Detection& detection) const noexcept = 0;
29
40 virtual Result<FSDKError>
41 estimate(
42 const fsdk::Span<const fsdk::Image> images,
43 const fsdk::Span<const fsdk::Detection> detections,
44 fsdk::Span<float> out) const noexcept = 0;
45 };
46
47 } // 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< FSDKError >
Types.h
Common data types and structures.
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
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
fsdk::Image
Image.
Definition: Image.h:38
fsdk::IAGSEstimator
Approximate Garbage Score estimator interface.
Definition: IAGSEstimator.h:18
fsdk::IAGSEstimator::estimate
virtual ResultValue< FSDKError, float > estimate(const fsdk::Image &image, const fsdk::Detection &detection) const noexcept=0
Estimate the ags.
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:13
fsdk::BaseDetection
Face detection. Stores a detected face bounding box within a source image frame as well as detection...
Definition: Detection.h:10