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

ICredibilityCheckEstimator.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(ICredibilityCheckEstimator);
14 #endif
15
20 enum class CredibilityStatus : uint8_t {
21 Reliable = 1,
22 NonReliable = 2
23 };
24
28 struct CredibilityCheckEstimation {
29 float value;
30
33 CredibilityStatus credibilityStatus;
34 };
36
42 struct ICredibilityCheckEstimator : IRefCounted {
51 virtual Result<FSDKError> estimate(
52 const Image& warp,
53 CredibilityCheckEstimation& out) const noexcept = 0;
54
67 virtual Result<FSDKError> estimate(
68 Span<const Image> warps,
69 Span<CredibilityCheckEstimation> out) const noexcept = 0;
70
81 virtual Result<FSDKError>
82 validate(
83 Span<const Image> warps,
84 Span<Result<FSDKError>> errors) const noexcept = 0;
85 };
86 }
fsdk::ICredibilityCheckEstimator::estimate
virtual Result< FSDKError > estimate(const Image &warp, CredibilityCheckEstimation &out) const noexcept=0
Estimate the reliability of person.
fsdk::CredibilityCheckEstimation::value
float value
Definition: ICredibilityCheckEstimator.h:29
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
IObject.h
Object system types and interfaces.
fsdk::CredibilityStatus::NonReliable
person is not reliable
fsdk::ICredibilityCheckEstimator
CredibilityCheck estimator interface.
Definition: ICredibilityCheckEstimator.h:42
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::Image
Image.
Definition: Image.h:38
fsdk::CredibilityStatus::Reliable
person is reliable
fsdk::ICredibilityCheckEstimator::validate
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
fsdk::CredibilityCheckEstimation::credibilityStatus
CredibilityStatus credibilityStatus
Definition: ICredibilityCheckEstimator.h:33
fsdk::CredibilityStatus
CredibilityStatus
CredibilityCheck estimator output enum. This enum contains all possible estimation results...
Definition: ICredibilityCheckEstimator.h:20
fsdk::CredibilityCheckEstimation
CredibilityCheck estimator output structure.
Definition: ICredibilityCheckEstimator.h:28
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14