Read Australia Post Barcodes
Overview
Australia Post is a 4-state postal barcode type implemented by the Australian Post. This type requires special two-digit format control code (FCC) fields and eight-digit sorting code (SC) fields as barcode information. FCC fields are intended to set one of three supported types with various fixed numbers of bars: 37, 52, or 67 bars. For some FCC, barcodes may comprise a customer information (CI) field that indicates one of the encoding types supporting numerical or alphanumeric characters. Customer information can take 31 bars in 67-length barcodes or 16 bars in 52-length ones. The Australia Post symbology has checksum controls and supports Reed-Solomon error correction.
See more details about this symbology here.
Because of the possible presence of customer information in barcode information for Australia Post, the recognition process has some peculiarities. Aspose.BarCode for Java provides class AustraliaPostSettings to manage recognition parameters according to specific industrial needs.
Decode Customer Information in Standard Formats
The Australia Post standard enables encoding additional customer data in three formats; automatic detection of the used format is not supported. The desired decoding format can be enabled through the setCustomerInformationInterpretingType method that can take different values explained in the table below.
Australia Post Encoding Table | Supported Symbols |
---|---|
CTable | Numerical digits, English letters, space symbol, and # |
NTable | Numerical digits |
Other | 0, 1, 2, and 3 that correspond to H, A, D, and T states |
CTable
Other
Remove Fill Patterns
The Australia Post symbology requires setting a fixed size for each subtype. When the CTable format is enabled, the empty space included in the input message is decoded as āzā. To disable this property, the setIgnoreEndingFillingPatternsForCTable method needs to be called.
Decode Customer Information in Custom Format
Aspose.BarCode for Java allows decoding customer data in various specific formats. To do this, a special interface called AustraliaPostCustomerInformationDecoder is available. In this case, barcode data decoding is processed according to this interface; CustomerInformationInterpretingType and ignoreEndingFillingPatternsForCTable settings are ignored.