Face detector configuration.
More...
#include <FaceDetector.h>
Face detector configuration.
It is input for detection.
◆ Type
| enum class Type : uint8_t |
|
strong |
Type of neural network detector.
◆ Config()
Creates Default configuration.
The default configuration is:
- type - BALANCED
- min detection size - 0.05
- max detection size - 0.95
References BALANCED, and Config().
Referenced by Config(), and Default().
◆ Default()
Provides default Config.
The default configuration is:
- type - BALANCED
- min detection size - 0.05
- max detection size - 0.95
- Returns
- default config
References Config().
◆ GetDetector()
| Type GetDetector |
( |
| ) |
const |
|
inlinenodiscard |
Function gets detection type.
- Returns
- detection type
◆ GetMaxDetectionSize()
| float GetMaxDetectionSize |
( |
| ) |
const |
|
inlinenodiscard |
Function gets max detection size.
- Returns
- max detection size.
◆ GetMinDetectionSize()
| float GetMinDetectionSize |
( |
| ) |
const |
|
inlinenodiscard |
Function gets min detection size.
- Returns
- min detection size.
◆ SetDetector()
| void SetDetector |
( |
Type | value | ) |
|
|
inline |
Function sets type of detector.
- Parameters
-
◆ SetMaxDetectionSize()
| void SetMaxDetectionSize |
( |
float | value | ) |
|
|
inline |
Function sets max detection size.
It specifies maximal valid size of face which is detectable in current detection mode. Face size is given by maximum of eyes distance and eyes to mouth distance in image.
- Parameters
-
| value | In case of (0., 1> range, the value is taken with respect to maximum of image dimensions. Otherwise it is considered as size in pixels. |
◆ SetMinDetectionSize()
| void SetMinDetectionSize |
( |
float | value | ) |
|
|
inline |
Function sets min detection size.
It specifies minimal valid size of face which is detectable in current detection mode. Face size is given by maximum of eyes distance and eyes to mouth distance in image.
- Parameters
-
| value | In case of (0., 1> range, the value is taken with respect to maximum of image dimensions. Otherwise it is considered as size in pixels. |
◆ WriteTo()
| void WriteTo |
( |
Writer & | writer | ) |
const |
|
inlinefinalvirtual |
Function serializes configuration via provided Writer.
- Parameters
-
| writer | used to serialize Config. |
Implements Serializable.
The documentation for this class was generated from the following file: