Barcode Reader CLI
Integration
Python
Python
brcli-example.config
1import subprocess
2import os
3import sys
4
5args = []
6args.append('./BarcodeReaderCLI')
7args.append('-type=code128')
8args.append('https://wabr.inliteresearch.com/SampleImages/1d.pdf')
9args.append('@./brcli-example.config') # Additional options and sources in configuration file
10
11cp = subprocess.run(args, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
12output=cp.stdout
13error=cp.stderr
14
15if output != "": print("STDOUT:\n" + output)
16if error != "": print("STDERR:\n" + error)
17# print("RETURN CODE:" + str(print(cp.returncode)))