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

INeckOcclusionEstimator.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(INeckOcclusionEstimator);
14 #endif
15
28 struct NeckOcclusionEstimation {
33 enum class Type {
34 NeckCovered = 0,
35 NeckOpen = 1,
36 NeckUnknown = 2,
37 };
38
39 float coveredScore;
40 float openScore;
41 float unknownScore;
42
43 Type result;
44 };
45
50 struct INeckOcclusionEstimator : IRefCounted {
60 virtual Result<FSDKError> estimate(
61 const Image& image,
62 const Detection& detection,
63 NeckOcclusionEstimation& estimation) const noexcept = 0;
64
77 virtual Result<FSDKError> estimate(
78 Span<const Image> images,
79 Span<const Detection> detections,
80 Span<NeckOcclusionEstimation> estimations) const noexcept = 0;
81
93 virtual Result<FSDKError> validate(
94 Span<const Image> images,
95 Span<const Detection> detections,
96 Span<Result<FSDKError>> errors) const noexcept = 0;
97 };
98
100 } // namespace fsdk
fsdk::NeckOcclusionEstimation::Type::NeckUnknown
the neck is not visible in the image or occluded by other objects
fsdk::NeckOcclusionEstimation::result
Type result
estimation result (
Definition: INeckOcclusionEstimator.h:43
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::INeckOcclusionEstimator::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 call.
fsdk::INeckOcclusionEstimator
NeckOcclusionEstimator estimator interface. The estimator determines if the person&#39;s neck is covered ...
Definition: INeckOcclusionEstimator.h:50
fsdk::NeckOcclusionEstimation
NeckOcclusionEstimator output structure. This structure contains.
Definition: INeckOcclusionEstimator.h:28
fsdk::NeckOcclusionEstimation::coveredScore
float coveredScore
the score that the neck is covered with clothes
Definition: INeckOcclusionEstimator.h:39
IObject.h
Object system types and interfaces.
fsdk::NeckOcclusionEstimation::Type
Type
NeckOcclusionEstimator output enum. This enum contains all possible estimation results.
Definition: INeckOcclusionEstimator.h:33
FSDKError.h
Common SDK error codes.
fsdk::NeckOcclusionEstimation::Type::NeckCovered
the neck is covered with clothes
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::INeckOcclusionEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, NeckOcclusionEstimation &estimation) const noexcept=0
Estimate if the person&#39;s neck is covered with clothes or not.
fsdk::NeckOcclusionEstimation::openScore
float openScore
the score that the neck is open/not covered with clothes
Definition: INeckOcclusionEstimator.h:40
fsdk::Image
Image.
Definition: Image.h:38
fsdk::NeckOcclusionEstimation::Type::NeckOpen
the neck is open/not covered with clothes
fsdk::Detection
Detection structure. Stores a detected bounding box within a source image rect.
Definition: Detection.h:10
fsdk::Span
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14
fsdk::NeckOcclusionEstimation::unknownScore
float unknownScore
the score that the neck is not visible in the image or occluded by other objects
Definition: INeckOcclusionEstimator.h:41