Skip to content

Commit 013df6f

Browse files
authored
Merge pull request #33 from ZoroWang/master
Update Readme
2 parents a643c9f + 373694a commit 013df6f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
- [![](https://img.shields.io/badge/Download-Offline%20SDK-orange)](https://www.dynamsoft.com/barcode-reader/downloads)
1010
- [![](https://img.shields.io/badge/Get-30--day%20FREE%20Trial%20License-blue)](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr)
1111

12+
## What You Should Know
13+
- [![](https://img.shields.io/badge/Get-30--day%20FREE%20Trial%20License-blue)](https://www.dynamsoft.com/customer/license/trialLicense/?product=dbr)
14+
1215
**[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.**
1316

1417
## Dynamsoft Barcode Reader - Python Edition
@@ -127,13 +130,29 @@ license_key = "Input your own license"
127130
json_file = r"Please input your own template path"
128131
image = r"Please input your own image path"
129132
133+
## The code snippet below shows how to use the full license in DBR 8.x:
134+
# connection_paras = BarcodeReader.init_lts_connection_parameters()
135+
## 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.
136+
# connection_paras.main_server_url = "Input your own server url"
137+
# connection_paras.handshake_code = "Input your own handshake"
138+
# connection_paras.deployment_type = EnumDMDeploymentType.DM_DT_DESKTOP
139+
# connection_paras.uuid_generation_method = EnumDMUUIDGenerationMethod.DM_UUIDGM_RANDOM
140+
# try:
141+
# error = BarcodeReader.init_license_from_lts(connection_paras)
142+
# if error[0] != EnumErrorCode.DBR_OK:
143+
# print(error[1])
144+
# except BarcodeReaderError as bre:
145+
# print(bre)
146+
130147
reader = BarcodeReader()
131148
132149
reader.init_license(license_key)
133150
#reader.init_license_from_server(license_server, license_key)
134151
#license_content = reader.output_license_to_string()
135152
#reader.init_license_from_license_content(license_key, license_content)
136153
154+
155+
137156
error = reader.init_runtime_settings_with_file(json_file)
138157
if error[0] != EnumErrorCode.DBR_OK:
139158
print(error[1])

samples/test_DecodeVideoByPiCamera.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def read_barcode():
159159

160160
reader.stop_video_mode()
161161
cv2.destroyWindow(windowName)
162+
camera.close()
162163

163164

164165
print("-------------------start------------------------")

0 commit comments

Comments
 (0)