Face Engine SDK  5.34.0
A face detection, recognition and tracking engine.
IDutyUniformEstimator.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(IDutyUniformEstimator);
14 #endif
15 
33  enum class Type {
34  ShoulderStraps = 0,
35  NoShoulderStraps = 1,
36  Unknown = 2
37  };
38 
41  float unknownScore;
42 
44  };
45 
61  const Image& image,
62  const Detection& detection,
63  DutyUniformEstimation& estimation) const noexcept = 0;
64 
77  Span<const Image> images,
78  Span<const Detection> detections,
79  Span<DutyUniformEstimation> estimations) const noexcept = 0;
80 
93  Span<const Image> images,
94  Span<const Detection> detections,
95  Span<Result<FSDKError>> errors) const noexcept = 0;
96  };
97 
99 } // namespace fsdk
float unknownScore
the score that the estimator cannot determine if there are shoulder straps
Definition: IDutyUniformEstimator.h:41
#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
Object system types and interfaces.
float noShoulderStrapsScore
the score that there are no shoulder straps on the person
Definition: IDutyUniformEstimator.h:40
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
could not determine if there are shoulder straps
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, DutyUniformEstimation &estimation) const noexcept=0
Estimate if there are shoulder straps on the person.
the person wears shoulder straps
the person does not wear shoulder straps
float shoulderStrapsScore
the score that there are shoulder straps on the person
Definition: IDutyUniformEstimator.h:39
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.
Type result
estimation result (
Definition: IDutyUniformEstimator.h:43
Image.
Definition: Image.h:38
DutyUniformEstimator output structure. This structure contains.
Definition: IDutyUniformEstimator.h:28
Type
DutyUniformEstimator output enum. This enum contains all possible estimation results.
Definition: IDutyUniformEstimator.h:33
DutyUniformEstimator estimator interface. The estimator determines if the person wears shoulder strap...
Definition: IDutyUniformEstimator.h:50
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