3DiVi Face SDK
3.24.1
|
Classes | |
class | face_sdk.modules.facerec_service.FacerecService |
Interface object for creating other interface objects. More... | |
def face_sdk.modules.facerec_service.FacerecService.create_age_gender_estimator | ( | self, | |
ini_file | |||
) |
Creates a AgeGenderEstimator object.
Thread-safe.
[in] | ini_file | Name of the config file. |
def face_sdk.modules.facerec_service.FacerecService.create_capturer | ( | self, | |
config | |||
) |
def face_sdk.modules.facerec_service.FacerecService.create_context | ( | self, | |
ctx | |||
) |
creates a container-Context from dict
[in] | ctx | - dict |
def face_sdk.modules.facerec_service.FacerecService.create_context_from_encoded_image | ( | self, | |
data | |||
) |
creates a container-Context from an encoded image
[in] | data | - image bytes |
def face_sdk.modules.facerec_service.FacerecService.create_context_from_frame | ( | self, | |
data | |||
) |
creates a container-Context from an image
[in] | data | - image bytes |
[in] | width | - the width of the image in pixels |
[in] | height | - the height of the image in pixels |
[in] | format | - image format |
[in] | base_angle | - the type of angle the purpose of which the image is expanded |
def face_sdk.modules.facerec_service.FacerecService.create_context_from_json_file | ( | self, | |
path | |||
) |
creates a container-Context from a json file
[in] | path | - the path to the file |
def face_sdk.modules.facerec_service.FacerecService.create_depth_liveness_estimator | ( | self, | |
config | |||
) |
Creates a DepthLivenessEstimator object.
Thread-safe.
[in] | ini_file | Name of the configuration file or configuration file with optionally overridden parameters. |
def face_sdk.modules.facerec_service.FacerecService.create_emotions_estimator | ( | self, | |
ini_file | |||
) |
Creates a EmotionsEstimator object.
Thread-safe.
[in] | ini_file | Name of the config file. |
def face_sdk.modules.facerec_service.FacerecService.create_face_attributes_estimator | ( | self, | |
config | |||
) |
Creates an FaceAttributesEstimator object.
Thread-safe.
[in] | ini_file | Name of the configuration file. |
def face_sdk.modules.facerec_service.FacerecService.create_face_quality_estimator | ( | self, | |
ini_file | |||
) |
Creates a FaceQualityEstimator object.
Thread-safe.
[in] | ini_file | Name of the config file. |
def face_sdk.modules.facerec_service.FacerecService.create_ir_liveness_estimator | ( | self, | |
config | |||
) |
Creates an IRLivenessEstimator object.
Thread-safe.
[in] | ini_file | Name of the configuration file or configuration file with optionally overridden parameters. |
def face_sdk.modules.facerec_service.FacerecService.create_liveness_2d_estimator | ( | self, | |
config | |||
) |
Liveness2DEstimator object.
Thread-safe.
[in] | ini_file | Name of the configuration file or configuration file with optionally overridden parameters. |
def face_sdk.modules.facerec_service.FacerecService.create_processing_block | ( | self, | |
ctx | |||
) |
creates a processing block
[in] | container-Context | containing the configuration of the processing block |
def face_sdk.modules.facerec_service.FacerecService.create_quality_estimator | ( | self, | |
ini_file | |||
) |
Creates a QualityEstimator object.
Thread-safe.
[in] | ini_file | Name of the config file. |
def face_sdk.modules.facerec_service.FacerecService.create_recognizer | ( | self, | |
recognizer_config | |||
) |
Creates a Recognizer object.
Thread-safe.
[in] | recognizer_config | Name of the config file or recognizer configuration file with optionally overridden parameters. |
[in] | processing | Flag to toggle the Recognizer.processing method in the created recognizer. |
[in] | matching | Flag to toggle the Recognizer.verify_match method in the created recognizer. |
[in] | processing_less_memory_consumption | Flag to toggle the Recognizer.processing member function optimizations that consume a lot of RAM when creating the recognizer (see the docs). |
def face_sdk.modules.facerec_service.FacerecService.create_service | ( | cls, | |
dll_path | |||
) |
Initializes the facerec lib (can be called only once).
[in] | dll_path | An absolute or a relative path to libfacerec.so on Linux or facerec.dll on Windows. |
[in] | facerec_conf_dir | An absolute or a relative path to the directory with config files (the 'face_sdk_3divi/conf/facerec/' directory). |
[in] | license_dir | If you need to specify the directory containing the license file, then it's an absolute or a relative path to this directory, otherwise, it's an empty string. In case of an empty string, a license file is searched first in the 'face_sdk_3divi/license/' directory. If it's not found, it's searched in the 'face_sdk_3divi/conf/facerec/' directory. |
def face_sdk.modules.facerec_service.FacerecService.create_video_worker | ( | self, | |
params | |||
) |
Creates a VideoWorker object.
Thread-safe.
When VideoWorker is created with matching_thread=0 and processing_thread=0, then the standard Capturer license is used.
Depending on the settings, VideoWorker uses either the VideoClient license (face tracking on video streams) or the VideoClientExt license (face tracking, template creation and matching with the database).
[in] | params | Parameters of the VideoWorker constructor. |
def face_sdk.modules.facerec_service.FacerecService.get_version | ( | self, | |
str | |||
) |
Get version of face recognition library.
Thread-safe.
def face_sdk.modules.facerec_service.FacerecService.load_raw_sample | ( | self, | |
binary_stream | |||
) |
def face_sdk.modules.facerec_service.FacerecService.load_raw_sample_without_image | ( | self, | |
binary_stream | |||
) |
Loads a RawSample object that was saved with the RawSample.save_without_image member function.
If you transformed the image in some way, you can set the parameters of coordinate space transformation: (x, y) -> ( (x + space_translation_x) * space_scale, (y + space_translation_y) * space_scale ) that will be applied to the information abour face position. Note that you must set the same transformation only once - either during serialization or during deserialization, otherwise transformation will be applied twice, which is wrong. The format is platform-independent. Thread-safe.
[in] | binary_stream | Input stream object. The file stream (std::ifstream) must be opened with the set flag std::ios_base::binary. |
[in] | image | Image. |
[in] | space_translation_x | Coordinate space transform parameter. |
[in] | space_translation_y | Coordinate space transform parameter. |
[in] | space_scale | Coordinate space transform parameter. |