Blueprint¶
The Blueprint is a factory object used to create other objects and setup the configuration. To create you need to pass it the path to data directory.
The blueprint object can be used to:
- List all available pipelines using
Blueprint::GetAvailablePipelines()
- Set the domain and the tolerance of the image analysis. See Additional parameters
- Suppress face validations. You can choose which validations to disable of the set of validations done before a liveness check is performed.
- Override some of the face validations parameters used to do face analysis. More relaxed values can decrease the number of images marked as invalid but accuracy may degrade.
Once you have created the objects you need the blueprint object can be discarded.
idliveface::Blueprint blueprint(IDLIVEFACE_HOME + "/data");
blueprint.SuppressValidation(idliveface::Validation::kEyesClosed);
blueprint = idliveface.Blueprint(IDLIVEFACE_HOME / "data")
blueprint.suppress_validation(idliveface.Validation.EYES_CLOSED)
Blueprint blueprint = new Blueprint(IDLIVEFACE_HOME.resolve("data"));
blueprint.suppressValidation(Validation.EYES_CLOSED);