Face Engine SDK  5.17.0
A face detection, recognition and tracking engine.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
IChildEstimator.h
1 #pragma once
2 
3 #include <fsdk/IObject.h>
4 #include <fsdk/FSDKError.h>
5 #include <fsdk/Optional.h>
6 #include <fsdk/Types.h>
7 
8 namespace fsdk {
9 
10 #ifndef DOXYGEN_SHOULD_SKIP_THIS
11  DECLARE_SMARTPTR(IChildEstimator);
12 #endif
13 
23  struct ChildEstimation {
24  float childScore = 0.0f;
25  bool isChild = false;
26  };
27 
41  virtual Result<FSDKError>
42  FSDK_DEPRECATED("IChildEstimator is deprecated since v.5.17.0, use IAttributeEstimator instead")
43  estimate(
44  const Image& warp,
45  ChildEstimation& estimation
46  ) const noexcept = 0;
47 
58  virtual Result<FSDKError>
59  FSDK_DEPRECATED("IChildEstimator is deprecated since v.5.17.0, use IAttributeEstimator instead")
60  estimate(
61  Span<const Image> warps,
62  Span<ChildEstimation> estimations) const noexcept = 0;
63 
74  virtual Result<FSDKError>
75  FSDK_DEPRECATED("IChildEstimator is deprecated since v.5.17.0, use IAttributeEstimator instead")
76  validate(
77  Span<const Image> warps,
78  Span<Result<FSDKError>> errors) const noexcept = 0;
79  };
81 } // 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
Common data types and structures.
float childScore
Numerical value in range [0, 1]. Show the person is child or not.
Definition: IChildEstimator.h:24
Object system types and interfaces.
Common SDK error codes.
Base strong reference counted object interface.
Definition: IRefCounted.h:37
virtual Result< FSDKError > validate(Span< const Image > warps, Span< Result< FSDKError >> errors) const noexcept=0
Validate input of multiple frames in a single function call.
Image.
Definition: Image.h:38
Child estimation output.
Definition: IChildEstimator.h:23
virtual Result< FSDKError > estimate(const Image &warp, ChildEstimation &estimation) const noexcept=0
Check whether or not warp corresponds to the adult person.
Child estimator interface.
Definition: IChildEstimator.h:32
bool isChild
Person is child (true) or not (false).
Definition: IChildEstimator.h:25
Span. Not owning data view. It incapsulated pointer to the continuous array with one or more T objec...
Definition: Span.h:14