Fluent builder for InitializerConfig.
More...
#include <InitializerConfig.h>
◆ Build()
Builds and returns the configuration.
- Returns
- validated initialisation configuration
- Exceptions
-
| EnrollmentInvalidArgumentException | when license content is not set |
| EnrollmentInvalidArgumentException | when model path is not set |
| EnrollmentInvalidArgumentException | when not all face/iris thread pools were configured |
| EnrollmentInvalidArgumentException | when a thread count is negative |
| FileException | if given license file is not accessible |
Referenced by Initialize().
◆ SetFaceIrisOpencvThreads()
Sets the OpenCV thread count for face and iris processing.
- Parameters
-
| count | thread count (0 means all available cores) |
- Returns
- reference to this builder
◆ SetFaceIrisOrtInterThreads()
Sets the ONNX Runtime inter-op thread count for face and iris processing.
- Parameters
-
| count | thread count (0 means all available cores) |
- Returns
- reference to this builder
◆ SetFaceIrisOrtIntraThreads()
Sets the ONNX Runtime intra-op thread count for face and iris processing.
- Parameters
-
| count | thread count (0 means all available cores) |
- Returns
- reference to this builder
◆ SetLicenseContent()
Sets embedded license bytes.
- Parameters
-
| content | raw license file content |
- Returns
- reference to this builder
Referenced by Initialize().
◆ SetLicensePath()
Sets license content from given license file.
- Parameters
-
- Returns
- reference to this builder
◆ SetModelsPath()
Sets the IFace models directory path.
- Parameters
-
| path | path to the models directory |
- Returns
- reference to this builder
Referenced by Initialize().
◆ UseAllAvailableCores()
Use all available CPU cores for each face/iris thread pool.
- Returns
- reference to this builder
◆ UseSingleCore()
Limit each face/iris thread pool to a single thread.
- Returns
- reference to this builder
Referenced by Initialize().
The documentation for this class was generated from the following file: