Face Engine SDK  5.21.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IPortraitStyle.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(IPortraitStyleEstimator);
14 #endif
15 
25  enum class PortraitStyleStatus : uint8_t {
26  NonPortrait = 0,
27  Portrait = 1,
28  HiddenShoulders = 2
29  };
30 
40  float portraitScore;
42  };
43 
49 
60  const Image& image,
61  const Detection& detection,
62  PortraitStyleEstimation& estimation) const noexcept = 0;
63 
76  Span<const Image> images,
77  Span<const Detection> detections,
78  Span<PortraitStyleEstimation> estimations) const noexcept = 0;
79 
92  Span<const Image> images,
93  Span<const Detection> detection,
94  Span<Result<FSDKError>> errors) const noexcept = 0;
95  };
96 
98 } // namespace fsdk
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:56
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, PortraitStyleEstimation &estimation) const noexcept=0
Estimates portrait style probability.
PortraitStyle estimator interface.
Definition: IPortraitStyle.h:48
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
PortraitStyleStatus status
estimation result (
Definition: IPortraitStyle.h:38
float nonPortraitScore
numerical value in range [0, 1]
Definition: IPortraitStyle.h:39
float portraitScore
numerical value in range [0, 1]
Definition: IPortraitStyle.h:40
float hiddenShouldersScore
numerical value in range [0, 1]
Definition: IPortraitStyle.h:41
PortraitStyle estimator output structure. This structure contains the result of estimation and probab...
Definition: IPortraitStyle.h:37
PortraitStyleStatus
PortraitStyle estimator output enum. This enum contains all possible estimation results.
Definition: IPortraitStyle.h:25
Image.
Definition: Image.h:38
virtual Result< FSDKError > validate(Span< const Image > images, Span< const Detection > detection, Span< Result< FSDKError >> errors) const noexcept=0
Validates input of multiple frames in a single function call.
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