API Reference
get_deviceid
Name
get_device_id
Description
Retrieves the Hardware ID.
Input
None
Output
The Hardware ID is returned as a standard Python string.
set_activation
Name
set_activation
Description
Activates the SDK using the provided license key.
Input
license_key (str): License key string, this should be encoded as UTF-8.
Output
Status code indicating the result of the activation.
0: Success
Non-zero: Initialization failed
init_sdk
Name
init_sdk
Description
Initializes the SDK with the required dictionary files.
Input
model_path (str): Path to the engine binary files directory, This path must be provided as a UTF-8 encoded string.
Output
Status code indicating the result of the initialization.
0: Success
Non-zero: Initialization failed
processImage
Name
processImage
Description
Processes the ID document liveness check
Input
image (ndarray): Numpy array for input image file.
width (int): Width of image.
height (int): Height of image.
Output
A JSON-formatted result string
Example of Liveness Check Results
Liveness Score Values (Default Threshold is 0.5)
≥ 0.5: Genuine, < 0.5: Spoof
Last updated