Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
More...
Inherits Enum.
|
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...
|
|
Defines the interpreting type(C_TABLE or N_TABLE) of customer information for AustralianPost BarCode.
◆ C_TABLE
Use C_TABLE to interpret the customer information.
Allows A..Z, a..z, 1..9, space and sing.
generator = BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "5912345678ABCde")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.C_TABLE)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, DecodeType.AUSTRALIA_POST)
reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.C_TABLE)
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeType())
print("BarCode CodeText: " + result.getCodeText())
◆ N_TABLE
Use N_TABLE to interpret the customer information.
Allows digits.
generator = BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "59123456781234567")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.N_TABLE)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, DecodeType.AUSTRALIA_POST)
reader.setCustomerInformationInterpretingType(CustomerInformationInterpretingType.N_TABLE)
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeType())
print("BarCode CodeText: " + result.getCodeText())
◆ OTHER
Do not interpret the customer information.
Allows 0, 1, 2 or 3 symbol only.
generator = BarcodeGenerator(EncodeTypes.AUSTRALIA_POST, "59123456780123012301230123")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(CustomerInformationInterpretingType.OTHER)
image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(image, DecodeType.AUSTRALIA_POST)
reader.CustomerInformationInterpretingType = CustomerInformationInterpretingType.OTHER)
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeType())
print("BarCode CodeText: " + result.getCodeText())