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

ILightColoredClothesEstimator.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(ILightColoredClothesEstimator);
14 #endif
15
28 struct LightColoredClothesEstimation {
33 enum class Type {
34 Light = 0,
35 Dark = 1,
36 Unknown = 2
37 };
38
39 float lightScore;
40 float darkScore;
41 float unknownScore;
42
43 Type result;
44 };
45
50 struct ILightColoredClothesEstimator : IRefCounted {
60 virtual Result<FSDKError> estimate(
61 const Image& image,
62 const Detection& detection,
63 LightColoredClothesEstimation& estimation) const noexcept = 0;
64
76 virtual Result<FSDKError> estimate(
77 Span<const Image> images,
78 Span<const Detection> detections,
79 Span<LightColoredClothesEstimation> estimations) const noexcept = 0;
80
92 virtual Result<FSDKError> validate(
93 Span<const Image> images,
94 Span<const Detection> detections,
95 Span<Result<FSDKError>> errors) const noexcept = 0;
96 };
97
99 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:70
fsdk
SDK namespace.
Definition: IAGSEstimator.h:8
fsdk::ILightColoredClothesEstimator
LightColoredClothesEstimator estimator interface. The estimator determines if the person wears light-...
Definition: ILightColoredClothesEstimator.h:50
fsdk::Result
A structure that encapsulates an action result enumeration.
Definition: Result.h:27
fsdk::LightColoredClothesEstimation
LightColoredClothesEstimator output structure. This structure contains.
Definition: ILightColoredClothesEstimator.h:28
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:37
fsdk::LightColoredClothesEstimation::lightScore
float lightScore
the score that the person wears light-colored clothes
Definition: ILightColoredClothesEstimator.h:39
fsdk::ILightColoredClothesEstimator::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::LightColoredClothesEstimation::Type::Dark
the person wears dark-colored clothes
fsdk::LightColoredClothesEstimation::darkScore
float darkScore
the score that the person wears dark-colored clothes
Definition: ILightColoredClothesEstimator.h:40
fsdk::ILightColoredClothesEstimator::estimate
virtual Result< FSDKError > estimate(const Image &image, const Detection &detection, LightColoredClothesEstimation &estimation) const noexcept=0
Estimate if the person wears light-colored clothes.
fsdk::LightColoredClothesEstimation::result
Type result
estimation result (
Definition: ILightColoredClothesEstimator.h:43
fsdk::LightColoredClothesEstimation::unknownScore
float unknownScore
the score that the estimator cannot determine if clothes are light or dark
Definition: ILightColoredClothesEstimator.h:41
fsdk::Image
Image.
Definition: Image.h:38
fsdk::LightColoredClothesEstimation::Type
Type
LightColoredClothesEstimator output enum. This enum contains all possible estimation results...
Definition: ILightColoredClothesEstimator.h:33
fsdk::LightColoredClothesEstimation::Type::Light
the person wears light-colored clothes
fsdk::LightColoredClothesEstimation::Type::Unknown
could not determine if clothes are light or dark
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