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

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
18 struct ChildEstimation {
19 float childScore = 0.0f;
20 bool isChild = false;
21 };
22
27 struct IChildEstimator : IRefCounted {
34 virtual Result<FSDKError> estimate(
35 const fsdk::Image& childWarp,
36 ChildEstimation& childEstimation
37 ) const noexcept = 0;
38
46 virtual Result<FSDKError>
47 estimate(
48 const fsdk::Image childWarps[],
49 const uint32_t batchSize,
50 ChildEstimation childEstimations[]) const noexcept = 0;
51 };
52
53 } // namespace fsdk
DECLARE_SMARTPTR
#define DECLARE_SMARTPTR(X)
Smart ptr declaration helper macro.
Definition: Def.h:59
fsdk::Result< FSDKError >
Types.h
Common data types and structures.
fsdk::ChildEstimation::childScore
float childScore
Numerical value in range [0, 1]. Show the person is child or not.
Definition: IChildEstimator.h:19
IObject.h
Object system types and interfaces.
FSDKError.h
Common SDK error codes.
fsdk::IRefCounted
Base strong reference counted object interface.
Definition: IRefCounted.h:36
fsdk::IChildEstimator::estimate
virtual Result< FSDKError > estimate(const fsdk::Image &childWarp, ChildEstimation &childEstimation) const noexcept=0
Check whether or not warp corresponds to the adult person.
fsdk::Image
Image.
Definition: Image.h:38
fsdk::ChildEstimation
Child estimation output.
Definition: IChildEstimator.h:18
fsdk::IChildEstimator
Child estimator interface.
Definition: IChildEstimator.h:27
fsdk::ChildEstimation::isChild
bool isChild
Person is child (true) or not (false).
Definition: IChildEstimator.h:20