Barcode Reader CLI
Command line examples
basic barcode reading from a file read code39 barcode output is the default json format barcodereadercli type=code39 type=code39 " your file tif " read code39 barcode output just text value to the console barcodereadercli type=code39 " your file tif " format=text output text="{text}" format=text output text="{text}" read barcodes from web based images using url read barcodes from web based images read from multiple images with a single call, each reading a different barcode type barcodereadercli type= type= pdf417 pdf417 "https // your site / your file jpg " type= type= code39 code39 "https //your side/ your file pdf " specify options and sources in a configuration file barcodereadercli @" @" brcli example config " read driver's license barcodes barcodereadercli type=drvlic type=drvlic " your file pdf " read barcodes from multiple files in a folder read barcodes in a folder and sub folders limit file types to bmp and pdf barcodereadercli type=pdf417 sub incl=" sub incl=" bmp pdf " " your folder " read barcodes using targeted barcode reader (tbr) read using tbr code 120 barcodereadercli type=datamatrix type=datamatrix tbr=120 tbr=120 " your file bmp " read non english barcode text values processing is configured in encoding config encoding config file features in this example read multiple barcode types set in type= type= option output results to multiple files with output= output= options (json, csv, and text files) output to text files using the template txt template txt file, configure with output text= output text= option limit type date in the output with fields= fields= option define macros with d= d= option and expanding use encoding= encoding= option to convert barcode values to localized text barcodereadercli @" @" encoding config " output=console encoding config # ============ options type=pdf417,qr,datamatrix \# ============ input d="srcdir=images/encoding/" d="outdir={path tmp}/brcli/" "{srcdir}qr utf8 japanese プライバシーマーク png" \# =========== read language encoded barcodes \# use 'encoding' to get utf8 text encoding=cp1256 "{srcdir}dm cp1256 arabic بساطة لأنه الأل tif" encoding=big5 "{srcdir}pdf417 big5 chinese 包含一杯准饮料 bmp" encoding=cp1251 "{srcdir}pdf417 cp1251 russian йшзщъфг bmp" \# ============== read utf8 encoded barcodes in various languages encoding= # disable encoding "{srcdir}pdf417 utf8 pdf" \# ============ ouput \# select fields in output files fields=text,type,path,encoding \# set output files output="{outdir}utf8 json" output="{outdir}utf8 csv" \# set format for text output output text=" /template txt" output="{outdir}utf8 txt" template txt \[onsession]{tab}session application {app filename}{tab} {app version} {tab} date/time {start date} {start time} \[onsource]{tab|#x2}source type {type} path {path} {tab|#x2} files {files} bc count {bc count} \[onfile]{tab|#x3}file path {path} {tab|#x3} pages {pages} format {format} size {size} bc count {bc count} \[onpage]{tab|#x4}page\ path {path} page {page} {tab|#x4} width {width} height {height} bpp {bpp} hdpi {hdpi} vdpi {vdpi} {tab|#x4} compr {compr} bc count {bc count} \[onbarcode]{tab|#x5}barcode type {type} length {length} {tab|#x5} rectangle {rectangle left} {rectangle top} {rectangle right} {rectangle bottom} {tab|#x5} rotation {rotation} path {path} page {page} {tab|#x5} skew {skew} mode {mod} charset {charset} {tab|#x5} text {text} {tab|#x5} data {data} \[ondrvlic]{tab|#x6} driver license {tab|#x6} name {last} {middle} {first} {tab|#x6} data {dob} eyes {eyes} hair {hair} sex {sex} height {height} weight {weight} {tab|#x6} address {street} {city} {state} {postal} {tab|#x6} license {id} issued {issued} expires {expires}