| Face Engine SDK 5.31.2 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
25 enum class CredibilityStatus : uint8_t {
26 Reliable = 1,
27 NonReliable = 2
28 };
29
33 struct CredibilityCheckEstimation {
34 float value;
35
36 CredibilityStatus credibilityStatus;
37 };
38
44 struct ICredibilityCheckEstimator : IRefCounted {
53 virtual Result<FSDKError> estimate(const Image& warp, CredibilityCheckEstimation& out) const noexcept = 0;
54
67 virtual Result<FSDKError>
68 estimate(Span<const Image> warps, Span<CredibilityCheckEstimation> out) const noexcept = 0;
69
80 virtual Result<FSDKError>
81 validate(Span<const Image> warps, Span<Result<FSDKError>> errors) const noexcept = 0;
82 };
83
85 } // namespace fsdk
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
estimation in [0,1] range. "1" means the most reliable person.
Definition: ICredibilityCheckEstimator.h:34
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
IObject.h
Object system types and interfaces.
fsdk::ICredibilityCheckEstimator
CredibilityCheck estimator interface.
Definition: ICredibilityCheckEstimator.h:44
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::CredibilityStatus::NonReliable
person is not reliable
fsdk::CredibilityStatus
CredibilityStatus
CredibilityCheck estimator output enum. This enum contains all possible estimation results...
Definition: ICredibilityCheckEstimator.h:25
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
estimation result (
Definition: ICredibilityCheckEstimator.h:36
fsdk::CredibilityCheckEstimation
CredibilityCheck estimator output structure.
Definition: ICredibilityCheckEstimator.h:33
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14