BarcodeReaderCLI Examples

In these examples 1D barcodes (Code39 and Code128) are read. To see how to read 2D and postal barcode click here.

These examples demonstrate use of Inlite’s Barcode Reader command line application (BarcodeReaderCLI).
The complete list of BarcodeReaderCLI command line options is here. To do actual testing install BarcodeReaderCLI executable and test images per instructions.

Programming languages code examples

Basic functionality invoking BarcodeReaderCLI is demonstrated in various programming languages. To test install BarcodeReaderCLI executable and test images per instructions.

PHP

Node.js

C#

Python

Ruby

Java

C++

Go

Shell script invocation examples

Basic barcode reading from a file

Windows

Linux

Read barcodes from Web-based images using URL

Windows

Linux

Configure options and sources through configuration file

Windows

Linux

Read driver license barcodes

Windows

Linux

Read barcodes from multiple files in a folder

Windows

Linux

Read barcodes containing text in local languages

Processing is configured in encoding.config file. Output is send to JSON, XML, CSV and TEXT files. TEXT file format is configured in template.txt file.

Windows

Linux

encoding.config

template.txt

Read barcodes using Targeted Barcode Reader (TBR)

Windows

Linux

Use TBR-Wizard to find the best TBR

Windows

Linux