Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

Python API Reference - BarcodeReader License Methods

Method Description
init_license Reads product key and activates the SDK.
init_license_from_server Initializes license and connect to the specified server for online verification.
init_license_from_license_content Initializes barcode reader license and connects to the specified server for online verification.
output_license_to_string Outputs the license content as an encrypted string from the license server to be used for offline license verification.
init_dls_connection_parameters Initializes a DMDLSConnectionParameters struct with default values.
init_license_from_dls Initializes the barcode reader license and connects to the specified server for online verification.
get_idle_instances_count Gets available instances count when charging by concurrent instances count.
init_lts_connection_parameters Deprecated. Use init_dls_connection_parameters instead.
init_license_from_lts Deprecated. Use init_license_from_dls instead.

init_license

Reads product key and activates the SDK.

BarcodeReader.init_license(dbr_license)

Parameters

[in] dbr_license <str> : The product keys.

Return Value

error <tuple> : error_code = error[0], error_message = error[1], if error_code != EnumErrorCode.DBR_OK, you can get the detailed error message by error_message.

init_license_from_server

Initialize the license and connect to the specified server for online verification.

BarcodeReader.init_license_from_server(license_server, license_key)

Parameters

[in] license_server <str> : The name/IP of the license server.
[in] license_key <str> : The license key of Barcode Reader.

Return Value

error <tuple> : error_code = error[0], error_message = error[1], if error_code != EnumErrorCode.DBR_OK, you can get the detailed error message by error_message.

init_license_from_license_content

Initializes barcode reader license from the license content on the client machine for offline verification.

BarcodeReader.init_license_from_license_content(license_key, license_content)

Parameters

[in] license_key <str> : The license key of Barcode Reader.
[in] license_content <str> : An encrypted string representing the license content (runtime number, expiry date, barcode type, etc.) obtained from the method output_license_to_string().

Return Value

error <tuple> : error_code = error[0], error_message = error[1], if error_code != EnumErrorCode.DBR_OK, you can get the detailed error message by error_message.

output_license_to_string

Outputs the license content as an encrypted string from the license server to be used for offline license verification.

BarcodeReader.output_license_to_string()

Return Value

license_string <str> : An encrypted string which stores the content of license.

Exception

BarcodeReaderError : If error happens, this function will throw a BarcodeReaderError exception that can report the detailed error message.

init_dls_connection_parameters

Initializes a DMDLSConnectionParameters struct with default values.

BarcodeReader.init_dls_connection_parameters()

Return Value

DMDLSConnectionParameters <class DMDLSConnectionParameters> : A DMDLSConnectionParameters struct with default values.

init_license_from_dls

Initializes the barcode reader license and connects to the specified server for online verification.

BarcodeReader.init_license_from_dls(dls_connection_parameters)

Parameters

  • [in] dls_connection_parameters <class DMDLSConnectionParameters> : The struct DMDLSConnectionParameters with customized settings.

Return Value

error <tuple> : error_code = error[0], error_message = error[1], if error_code != EnumErrorCode.DBR_OK, you can get the detailed error message by error_message.

get_idle_instances_count

Gets available instances count when charging by concurrent instances count.

BarcodeReader.get_idle_instances_count()

Return Value
count <int> : Returns available instances count.

init_lts_connection_parameters

Deprecated. Use init_dls_connection_parameters instead.

init_license_from_lts

Deprecated. Use init_license_from_dls instead.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 8.6.0
  • Version 8.4.0
  • Version 8.2.5
  • Version 8.2.3
  • Version 8.2.1
  • Version 8.2.0
  • Version 8.1.3
  • Version 8.1.2
  • Version 8.1.0
  • Version 8.0.0
  • Version 7.6.0
  • Version 7.5.0
Change +
© 2003–2021 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support