|
6 | 6 |  |  |
7 | 7 |
|
8 | 8 |
|
| 9 | +## What You Should Know |
| 10 | +- [](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr) |
| 11 | + |
9 | 12 | **[Dynamsoft's Barcode Reader SDK](https://www.dynamsoft.com/barcode-reader/overview/?utm_source=github) enables you to efficiently embed barcode reading functionality in your web, desktop or mobile application using just a few lines of code. Saving you months of added development time and resources, our SDK can create high-speed and reliable barcode scanner software applications to meet your business needs.** |
10 | 13 |
|
11 | 14 | ## Dynamsoft Barcode Reader - Python Edition |
@@ -128,13 +131,29 @@ license_key = "Input your own license" |
128 | 131 | json_file = r"Please input your own template path" |
129 | 132 | image = r"Please input your own image path" |
130 | 133 |
|
| 134 | +## The code snippet below shows how to use the full license in DBR 8.x: |
| 135 | +# connection_paras = BarcodeReader.init_lts_connection_parameters() |
| 136 | +## 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. |
| 137 | +# connection_paras.main_server_url = "Input your own server url" |
| 138 | +# connection_paras.handshake_code = "Input your own handshake" |
| 139 | +# connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP |
| 140 | +# connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM |
| 141 | +# try: |
| 142 | +# error = BarcodeReader.init_license_from_lts(connection_paras) |
| 143 | +# if error[0] != EnumErrorCode.DBR_OK: |
| 144 | +# print(error[1]) |
| 145 | +# except BarcodeReaderError as bre: |
| 146 | +# print(bre) |
| 147 | +
|
131 | 148 | reader = BarcodeReader() |
132 | 149 |
|
133 | 150 | reader.init_license(license_key) |
134 | 151 | #reader.init_license_from_server(license_server, license_key) |
135 | 152 | #license_content = reader.output_license_to_string() |
136 | 153 | #reader.init_license_from_license_content(license_key, license_content) |
137 | 154 |
|
| 155 | +
|
| 156 | +
|
138 | 157 | error = reader.init_runtime_settings_with_file(json_file) |
139 | 158 | if error[0] != EnumErrorCode.DBR_OK: |
140 | 159 | print(error[1]) |
|
0 commit comments