Skip to content

Commit a9fb0e2

Browse files
committed
Modify samples
1 parent 93cf901 commit a9fb0e2

8 files changed

Lines changed: 12 additions & 12 deletions

examples/command-line/test_AppendTemplateFile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def OutputRuntimeSettingsToFile(outputFileName):
3535

3636
#you can change the following five variables' value to your own value.
3737
licenseKey = "Input your own license"
38-
inputFileName = r"D:\Work\InputFile\Input20191206-1.json"
39-
appendFileName = r"D:\Work\InputFile\Input20191206-2.json"
40-
outputFileName = r"D:\Work\OutputFile\Output20191206-2.json"
38+
inputFileName = r"Please input your own template path"
39+
appendFileName = r"Please input your own template path"
40+
outputFileName = r"Please input your own output template path"
4141
#conflictMode has two optional values : dbr.CM_OVERWRITE and dbr.CM_IGNORE
4242
conflictMode = dbr.CM_OVERWRITE
4343

examples/command-line/test_DecodeFile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def DecodeFile(fileName):
3939

4040
#you can change the following three variables' value to your own value.
4141
licenseKey = "Input your own license"
42-
fileName = r"F:\Work\TestVideoOrImage\IN1910101311400312803-01.jpg"
43-
inputFileName = r"F:\Work\InputFile\templatesettings.json"
42+
fileName = r"Please input your own image path"
43+
inputFileName = r"Please input your own template path"
4444

4545
InitLicense(licenseKey)
4646
errorCode = dbr.InitRuntimeSettingsByJsonFile(inputFileName)

examples/command-line/test_DecodeFileInMemory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def DecodeFileStream(imagePath):
3535

3636
#you can change the following two variables' value to your own value.
3737
licenseKey = "Input your own license"
38-
fileName = r"D:\Work\Python\python-barcode\images\test.jpg"
38+
fileName = r"Please input your own image path"
3939

4040
InitLicense(licenseKey)
4141
DecodeFileStream(fileName)

examples/command-line/test_DecodeImageBufferByOpencv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def DecodeBuffer(imageByOpencv):
3333

3434
#you can change the following two variables' value to your own value.
3535
licenseKey = "Input your own license"
36-
fileName = r"D:\Work\Python\python-barcode\images\test.jpg"
36+
fileName = r"Please input your own image path"
3737

3838
InitLicense(licenseKey)
3939
image = cv2.imread(fileName)

examples/command-line/test_DecodeImagesInFolder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
LICENSE_KEY = "Input your own license"
12-
PATH_TO_IMAGEs = r'F:\Work\TestVideoOrImage\code128\code128'
12+
PATH_TO_IMAGEs = r"Please input your own images library path"
1313

1414
def dynamsoftReader (fileName, key):
1515

examples/command-line/test_DecodeLocalVideo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def read_barcode():
2323
global results
2424
video_width = 0
2525
video_height = 0
26-
testVideo = r"F:\Work\TestVideoOrImage\(QRCODE)JavaScript Barcode Reader Demo.mp4"
26+
testVideo = r"Please input your own local video path"
2727

2828
vc = cv2.VideoCapture(testVideo)
2929
video_width = vc.get(cv2.CAP_PROP_FRAME_WIDTH)

examples/command-line/test_DecodeLocalVideos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
sys.path.append('../')
99

1010
license_ = "Input your own license"
11-
batch_folder_path = ""
11+
batch_folder_path = "Input your own local videos library path"
1212

1313
# import config
1414

examples/command-line/test_InitRuntimeSettingsByFile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def OutputRuntimeSettingsToFile(outputFileName):
2424

2525
#you can change the following three variables' value to your own value.
2626
licenseKey = "Input your own license"
27-
inputFileName = r"D:\Work\InputFile\Input20191206-1.json"
28-
outputFileName = r"D:\Work\OutputFile\Output20191206-1.json"
27+
inputFileName = r"Please input your own template path"
28+
outputFileName = r"Please input your own output template path"
2929

3030
InitLicense(licenseKey)
3131
InitRuntimeSettingsByJsonFile(inputFileName)

0 commit comments

Comments
 (0)