Skip to content

Commit 373694a

Browse files
committed
Update Readme
1 parent 5eb2642 commit 373694a

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
@@ -6,6 +6,9 @@
66
![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")
77

88

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

1114
## Dynamsoft Barcode Reader - Python Edition
@@ -128,13 +131,29 @@ license_key = "Input your own license"
128131
json_file = r"Please input your own template path"
129132
image = r"Please input your own image path"
130133
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+
131148
reader = BarcodeReader()
132149
133150
reader.init_license(license_key)
134151
#reader.init_license_from_server(license_server, license_key)
135152
#license_content = reader.output_license_to_string()
136153
#reader.init_license_from_license_content(license_key, license_content)
137154
155+
156+
138157
error = reader.init_runtime_settings_with_file(json_file)
139158
if error[0] != EnumErrorCode.DBR_OK:
140159
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)