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