How-To: Barcode Reading

Read 1D barcodes from an image page

The following examples demonstrate the basic technique to read 1D barcodes from an image file page.
Code39 and Code 128 are the expected barcode types in these examples. If other types (the real term is symbologies) are required, then select from the supported types from the .NET API or COM API lists. ClearImage supports the capability of Automatic symbology recognition, however, this capability is beneficial primarily in the devlopment phase of the project. Once projects enter production, they typically utilize one or two symbologies. Selecting for only those symbologies makes the recognition faster, and reduces the validation effort in your application.

C#


VB


C++


Java


PHP


Delphi


VBScript/ASP


Read 2D barcodes from an image page

The following examples demonstrate the basic technique to read 2D barcodes from an image file page.
ClearImage supports PDF417, DataMatrix and QR code. In this example, we look only at PDF417. Datamatrix and QR recognition are commented out, but work in the same way.

2D barcodes can contain binary data, compressed text or text encoded in other than ASCII. Text from non western languages is typically encoded in UTF-8 or Unicode, or other code system. See the use of barcodes page to understand how to use Data property to decode barcode data.

C#


VB


C++


Java


PHP


Delphi


VBScript/ASP


Read postal barcodes from an image page

The following examples demonstrate the basic technique to read postal barcodes from an image file page.
To read the latest generation of postal barcodes (US Intelligent Mail, UK Royal Mail, Australian Mail) select reader.FourState=true (.NET) or reader.Type=cibf4State (COM)

C#


VB


C++


Java


PHP


Delphi


VBScript/ASP