diff --git a/README.md b/README.md index 6665211..1e21336 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Supported Python versions](https://img.shields.io/badge/python-3.6%20%7C%203.7%20%7C%203.8%20%7C%203.9-blue)](https://www.python.org/downloads/) [![PyPI downloads](https://img.shields.io/pypi/dm/dbr)](https://pypistats.org/packages/dbr) -![Dynamsoft](https://dynamsoft.github.io/styleguide/assets/img-icon/logo-dynamsoft-whiteBg-190x47.png "Dynamsoft") | ![dbr](https://dynamsoft.github.io/styleguide/assets/img-icon/logo-dbr-88x88.png "dbr") +![Dynamsoft](https://dynamsoft.github.io/styleguide/assets/images/icons/dynamsoft_logos/dynamsoft_logo_original.png "Dynamsoft") | ![dbr](https://dynamsoft.github.io/styleguide/assets/images/icons/product-logo-SVG/dbr.svg "dbr") ## What You Should Know @@ -33,7 +33,7 @@ ### Version -- **8.4** +- **8.6** ### Supported Platforms - **Windows x64** diff --git a/samples/test_AppendTemplateFile.py b/samples/test_AppendTemplateFile.py index 39f841c..d73b18a 100644 --- a/samples/test_AppendTemplateFile.py +++ b/samples/test_AppendTemplateFile.py @@ -19,14 +19,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_AppendTemplateString.py b/samples/test_AppendTemplateString.py index 8d6480b..f6e3941 100644 --- a/samples/test_AppendTemplateString.py +++ b/samples/test_AppendTemplateString.py @@ -16,14 +16,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeFile.py b/samples/test_DecodeFile.py index 88312b0..fc6a33b 100644 --- a/samples/test_DecodeFile.py +++ b/samples/test_DecodeFile.py @@ -15,14 +15,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeFileInMemory.py b/samples/test_DecodeFileInMemory.py index 9432b01..579ce10 100644 --- a/samples/test_DecodeFileInMemory.py +++ b/samples/test_DecodeFileInMemory.py @@ -14,14 +14,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeImageBufferByOpencv.py b/samples/test_DecodeImageBufferByOpencv.py index bc2dceb..d5f8eec 100644 --- a/samples/test_DecodeImageBufferByOpencv.py +++ b/samples/test_DecodeImageBufferByOpencv.py @@ -18,14 +18,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeImagesInFolder.py b/samples/test_DecodeImagesInFolder.py index 8318133..344a4cc 100644 --- a/samples/test_DecodeImagesInFolder.py +++ b/samples/test_DecodeImagesInFolder.py @@ -18,14 +18,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeIntermediateResults.py b/samples/test_DecodeIntermediateResults.py index 8313b05..d17066e 100644 --- a/samples/test_DecodeIntermediateResults.py +++ b/samples/test_DecodeIntermediateResults.py @@ -15,14 +15,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeLocalVideo.py b/samples/test_DecodeLocalVideo.py index a8374af..a8e1e64 100644 --- a/samples/test_DecodeLocalVideo.py +++ b/samples/test_DecodeLocalVideo.py @@ -43,8 +43,8 @@ def text_results_callback_func(frame_id, t_results, user_data): print("Exception : ") print(text_result.exception) print("-------------") -## Or you can inherit the abstract class TextResultResultCallBack to implement the abstract method text_results_callback_func. -# class SubTextResultResultCallBack(TextResultResultCallBack): +## Or you can inherit the abstract class TextResultCallBack to implement the abstract method text_results_callback_func. +# class SubTextResultCallBack(TextResultCallBack): # @staticmethod # def text_results_callback_func(frame_id, t_results, user_data): # print(frame_id) @@ -142,14 +142,14 @@ def read_barcode(): reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeLocalVideos.py b/samples/test_DecodeLocalVideos.py index 242cbc9..35e175b 100644 --- a/samples/test_DecodeLocalVideos.py +++ b/samples/test_DecodeLocalVideos.py @@ -46,8 +46,8 @@ def text_results_callback_func(frame_id, t_results, user_data): print("Exception : ") print(text_result.exception) print("-------------") -## Or you can inherit the abstract class TextResultResultCallBack to implement the abstract method text_results_callback_func. -# class SubTextResultResultCallBack(TextResultResultCallBack): +## Or you can inherit the abstract class TextResultCallBack to implement the abstract method text_results_callback_func. +# class SubTextResultCallBack(TextResultCallBack): # @staticmethod # def text_results_callback_func(frame_id, t_results, user_data): # print(frame_id) @@ -151,14 +151,14 @@ def read_barcode(video_path): reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeVideoByCamera.py b/samples/test_DecodeVideoByCamera.py index 4085d8f..9400572 100644 --- a/samples/test_DecodeVideoByCamera.py +++ b/samples/test_DecodeVideoByCamera.py @@ -43,8 +43,8 @@ def text_results_callback_func(frame_id, t_results, user_data): print("Exception : ") print(text_result.exception) print("-------------") -## Or you can inherit the abstract class TextResultResultCallBack to implement the abstract method text_results_callback_func. -# class SubTextResultResultCallBack(TextResultResultCallBack): +## Or you can inherit the abstract class TextResultCallBack to implement the abstract method text_results_callback_func. +# class SubTextResultCallBack(TextResultCallBack): # @staticmethod # def text_results_callback_func(frame_id, t_results, user_data): # print(frame_id) @@ -146,14 +146,14 @@ def read_barcode(): reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_DecodeVideoByPiCamera.py b/samples/test_DecodeVideoByPiCamera.py index fbd2116..a526a96 100644 --- a/samples/test_DecodeVideoByPiCamera.py +++ b/samples/test_DecodeVideoByPiCamera.py @@ -46,8 +46,8 @@ def text_results_callback_func(frame_id, t_results, user_data): print("Exception : ") print(text_result.exception) print("-------------") -## Or you can inherit the abstract class TextResultResultCallBack to implement the abstract method text_results_callback_func. -# class SubTextResultResultCallBack(TextResultResultCallBack): +## Or you can inherit the abstract class TextResultCallBack to implement the abstract method text_results_callback_func. +# class SubTextResultCallBack(TextResultCallBack): # @staticmethod # def text_results_callback_func(frame_id, t_results, user_data): # print(frame_id) @@ -159,7 +159,6 @@ def read_barcode(): reader.stop_video_mode() cv2.destroyWindow(windowName) - camera.close() print("-------------------start------------------------") @@ -168,14 +167,14 @@ def read_barcode(): reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_InitLicenseFromLTS.py b/samples/test_InitLicenseFromDLS.py similarity index 82% rename from samples/test_InitLicenseFromLTS.py rename to samples/test_InitLicenseFromDLS.py index 03358e1..95f55ba 100644 --- a/samples/test_InitLicenseFromLTS.py +++ b/samples/test_InitLicenseFromDLS.py @@ -4,7 +4,7 @@ reader = BarcodeReader() -connection_paras = BarcodeReader.init_lts_connection_parameters() +connection_paras = BarcodeReader.init_dls_connection_parameters() # If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. connection_paras.main_server_url = "Input your own server url" connection_paras.handshake_code = "Input your own handshake" @@ -12,7 +12,7 @@ connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM try: - error = BarcodeReader.init_license_from_lts(connection_paras) + error = BarcodeReader.init_license_from_dls(connection_paras) if error[0] != EnumErrorCode.DBR_OK: print(error[1]) except BarcodeReaderError as bre: diff --git a/samples/test_InitRuntimeSettingsByFile.py b/samples/test_InitRuntimeSettingsByFile.py index 414f209..1f2de34 100644 --- a/samples/test_InitRuntimeSettingsByFile.py +++ b/samples/test_InitRuntimeSettingsByFile.py @@ -18,14 +18,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_InitRuntimeSettingsByString.py b/samples/test_InitRuntimeSettingsByString.py index f602689..970c244 100644 --- a/samples/test_InitRuntimeSettingsByString.py +++ b/samples/test_InitRuntimeSettingsByString.py @@ -15,14 +15,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: diff --git a/samples/test_UpdateRuntimeSettings.py b/samples/test_UpdateRuntimeSettings.py index e360acc..2b136ae 100644 --- a/samples/test_UpdateRuntimeSettings.py +++ b/samples/test_UpdateRuntimeSettings.py @@ -12,14 +12,14 @@ reader.init_license(license_key) ## The code snippet below shows how to use the full license in DBR 8.x: -# connection_paras = BarcodeReader.init_lts_connection_parameters() +# connection_paras = BarcodeReader.init_dls_connection_parameters() ## If DBR service is already built on your server, you can fill in the address of your server, or leave this property's default value. # connection_paras.main_server_url = "Input your own server url" # connection_paras.handshake_code = "Input your own handshake" # connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP # connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM # try: -# error = BarcodeReader.init_license_from_lts(connection_paras) +# error = BarcodeReader.init_license_from_dls(connection_paras) # if error[0] != EnumErrorCode.DBR_OK: # print(error[1]) # except BarcodeReaderError as bre: