You are here: Start » Program Examples » Barcodes (Code128)

Barcodes (Code128)

Aim

The task is to detect and recognize a single Code128 barcode.

Input

An image containing a Code128 barcode. The position of the barcode is variable.

Output

Detected barcode and decoded text.

Solution (AVS)

  1. Add EnumerateImages filter to get load consecutive images of some disk directory.
  2. Add ReadSingleBarcode filter to detect and recognize a barcode.
  3. Set the inBarcodeFormat parameter to Interleaved2of5.
  4. Set the inDetectionScanCount parameter to 10.
  5. Show the decoded text on a new preview window.

Macrofilter Main

Used Filters

Icon Name Description
EnumerateImages Emulates image acquisition with images stored on disk.
ReadSingleBarcode To be used as an easy all-in-one solution for typical barcode reading applications.