Skip to content

Commit 93cf901

Browse files
committed
Update test_DecodeFile.py
1 parent 8eaddd7 commit 93cf901

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

examples/command-line/test_DecodeFile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ def DecodeFile(fileName):
3737

3838
if __name__ == "__main__":
3939

40-
#you can change the following two variables' value to your own value.
40+
#you can change the following three variables' value to your own value.
4141
licenseKey = "Input your own license"
4242
fileName = r"F:\Work\TestVideoOrImage\IN1910101311400312803-01.jpg"
43+
inputFileName = r"F:\Work\InputFile\templatesettings.json"
4344

4445
InitLicense(licenseKey)
46+
errorCode = dbr.InitRuntimeSettingsByJsonFile(inputFileName)
47+
if errorCode != 0:
48+
print("Failed!")
49+
else:
50+
print("Successful")
4551
DecodeFile(fileName)

0 commit comments

Comments
 (0)