IDLive Face C++ API 1.46.0
|
Face engines and pipelines aggregator. More...
#include <facesdk/FaceSDK.h>
Static Public Member Functions | |
static PipelinePtr | getPipeline (const std::string &name, InitConfigPtr config) |
Return pipeline engine by name. | |
static DetectEnginePtr | getDetectEngine (const std::string &name, InitConfigPtr config) |
Return face detection engine by name. | |
static QualityEnginePtr | getQualityEngine (const std::string &name, InitConfigPtr config) |
Return face quality engine by name. | |
static void | setNumThreads (unsigned int num_threads, ThreadingLevel threading_level) noexcept |
Sets the maximum number of threads available for FaceSDK at the specified level. If 0 is passed, then the optimal number of threads is detected automatically (the same effect is achieved if setNumThreads is not called). | |
static void | setOvNumThroughputStreams (int ov_num_throughput_streams) noexcept |
Sets the number of CPU execution streams for OpenVINO backend. | |
static void | setOvBindThreads (bool ov_bind_threads) noexcept |
Sets the CPU bind setting for OpenVINO backend. | |
static void | setOvMaxBatchSize (unsigned int ov_max_batch_size) noexcept |
Sets the maximum batch size for OpenVINO backend. This is not a hard limit (i.e. passing batches bigger than the limit will not cause an error), however setting this value to the target batch size will increase performance. | |
static void | setEnableLogging (bool enable_logging) noexcept |
Sets whether to enable FaceSDK logging. Logging is enabled by default. | |
static void | setNumPipelineExecutionStreams (unsigned int num_pipeline_execution_streams) noexcept |
Sets the maximum number of execution streams (maximum number of requests executed in concurrent) for Pipeline. Default value is number of logical CPU cores. | |
static void | setEnableFaceOcclusionDetection (bool enabled) noexcept |
Toggles face occlusion detection. When enabled the occluded faces will be rejected. | |
static void | setEnableClosedEyesDetection (bool enabled) noexcept |
Toggles closed eyes detection. When enabled the faces with closed eyes will be rejected. | |
static std::string | getVersion () |
Returns the release version. | |
static std::vector< LicenseFeatureInfo > | getLicenseFeaturesInfo () |
Returns information about all available licensed features. | |
static std::string | getLicenseInfo () |
Returns information about a license if available. | |
static void | setLicense (const std::string &license) |
Sets a new license. | |
Face engines and pipelines aggregator.
|
static |
Return face detection engine by name.
name | Engine name |
config | Configuration object |
FaceException |
|
static |
Returns information about all available licensed features.
FaceException |
|
static |
Returns information about a license if available.
FaceException |
|
static |
Return pipeline engine by name.
name | Pipeline name |
config | Configuration object |
FaceException |
|
static |
Return face quality engine by name.
name | Engine name |
config | Configuration object |
FaceException |
|
static |
Returns the release version.
|
staticnoexcept |
Toggles closed eyes detection. When enabled the faces with closed eyes will be rejected.
enabled | Whether to enable the detection or not |
|
staticnoexcept |
Toggles face occlusion detection. When enabled the occluded faces will be rejected.
enabled | Whether to enable the detection or not |
|
staticnoexcept |
Sets whether to enable FaceSDK logging. Logging is enabled by default.
enable_logging | Whether to enable logging or not |
|
static |
Sets a new license.
On Mobile builds (Android and iOS) and Lambda SDK distributions this function can be used to update the license by passing the contents of a new license file.
It will fail on regular SDK distributions
license | license to be set |
FaceException |
|
staticnoexcept |
Sets the maximum number of execution streams (maximum number of requests executed in concurrent) for Pipeline. Default value is number of logical CPU cores.
num_pipeline_execution_streams | Number of execution streams |
|
staticnoexcept |
Sets the maximum number of threads available for FaceSDK at the specified level. If 0 is passed, then the optimal number of threads is detected automatically (the same effect is achieved if setNumThreads is not called).
num_threads | Maximum number of threads available for FaceSDK at the specified level |
threading_level | Threading level to apply setting |
|
staticnoexcept |
Sets the CPU bind setting for OpenVINO backend.
ov_bind_threads | Whether to bind execution threads to CPU physical cores or not |
|
staticnoexcept |
Sets the maximum batch size for OpenVINO backend. This is not a hard limit (i.e. passing batches bigger than the limit will not cause an error), however setting this value to the target batch size will increase performance.
ov_max_batch_size | Maximum batch size |
|
staticnoexcept |
Sets the number of CPU execution streams for OpenVINO backend.
ov_num_throughput_streams | Number of CPU execution streams, valid values are -1 (auto-tune number of streams), 0 (use the default setting) and any positive value, other values are dropped without an error |