Aspose.Barcode for Python via Java Generation and Recognition API docs
CustomerInformationInterpretingType Class Reference

Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode. More...

Inherits Enum.

Static Public Attributes

int C_TABLE = 0
 Use C_TABLE to interpret the customer information. More...
 
int N_TABLE = 1
 Use N_TABLE to interpret the customer information. More...
 
int OTHER = 2
 Do not interpret the customer information. More...
 

Detailed Description

Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.

Member Data Documentation

◆ C_TABLE

int C_TABLE = 0
static

Use C_TABLE to interpret the customer information.

Allows A..Z, a..z, 1..9, space and sing.

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "5912345678ABCde")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(Generation.CustomerInformationInterpretingType.C_TABLE)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, None,Recognition.DecodeType.AUSTRALIA_POST)
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(Recognition.CustomerInformationInterpretingType.C_TABLE)
results = reader.readBarCodes()
for result in results:
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")

◆ N_TABLE

int N_TABLE = 1
static

Use N_TABLE to interpret the customer information.

Allows digits.

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "59123456781234567")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(
Generation.CustomerInformationInterpretingType.N_TABLE)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, None,Recognition.DecodeType.AUSTRALIA_POST)
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(Recognition.CustomerInformationInterpretingType.N_TABLE)
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeTypeName())
print("BarCode CodeText: " + result.getCodeText())

◆ OTHER

int OTHER = 2
static

Do not interpret the customer information.

Allows 0, 1, 2 or 3 symbol only.

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "59123456781234567")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(
Generation.CustomerInformationInterpretingType.N_TABLE)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, None, Recognition.DecodeType.AUSTRALIA_POST)
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(
Recognition.CustomerInformationInterpretingType.OTHER)
results = reader.readBarCodes()
for result in results:
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")