Example Code

PostNET Barcode Decoder

Code and Documents

Attachment

This example decodes the PostNET Barcode that contains the ZIP Code and other information about the destination address for a letter or package.

The website "The PostNET Bar Decoder" was used as a reference when creating the algorithm used. The code is tested and works with the images provided below (from the site indicated).

As a note this program only reads the first 6 digits of a PostNET Barcode (5 digits of a ZIP Code plus a check digit). Barcodes can come in different lengths to include 4 digit extensions and address information. Changes can be made to this code to accomodate different lengths.

Code Snippet.png

Cameron T
Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
lesewe99
Member
Member
on

Thanks for sharing. Which platform does this decoder support? I used one similar barcode decoder. It can read PostNET in .NET program. If your barcode deocoder can provide some reading guide or tutorial,  it would be very useful for people who are freshmen in this field.

Contributors