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

AustraliaPost decoding parameters. More...

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
def getCustomerInformationInterpretingType (self)
 Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER. More...
 
def getIgnoreEndingFillingPatternsForCTable (self)
 The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. More...
 
def init (self)
 
def setCustomerInformationInterpretingType (self, value)
 Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER. More...
 
def setIgnoreEndingFillingPatternsForCTable (self, value)
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 
def setJavaClass (self, javaClass)
 

Static Public Member Functions

def construct (javaClass)
 

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

AustraliaPost decoding parameters.

Contains parameters which make influence on recognized data of AustraliaPost symbology.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ construct()

def construct (   javaClass)
static

◆ getCustomerInformationInterpretingType()

def getCustomerInformationInterpretingType (   self)

Gets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.

Returns
: The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode

◆ getIgnoreEndingFillingPatternsForCTable()

def getIgnoreEndingFillingPatternsForCTable (   self)

The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method.

CTable encoding method does not have any gaps in encoding table and sequence "333" of filling paterns is decoded as letter "z".

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.AUSTRALIA_POST, "5912345678AB")
generator.getParameters().getBarcode().getAustralianPost().setAustralianPostEncodingTable(
Generation.CustomerInformationInterpretingType.C_TABLE)
pillow_image = generator.generateBarCodeImage()
reader = Recognition.BarCodeReader(pillow_image, None, Recognition.DecodeType.AUSTRALIA_POST)
reader.getBarcodeSettings().getAustraliaPost().setCustomerInformationInterpretingType(
Recognition.CustomerInformationInterpretingType.C_TABLE)
reader.getBarcodeSettings().getAustraliaPost().setIgnoreEndingFillingPatternsForCTable(True)
results = reader.readBarCodes()
for result in results:
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")
Returns
: The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

◆ setCustomerInformationInterpretingType()

def setCustomerInformationInterpretingType (   self,
  value 
)

Sets the Interpreting Type for the Customer Information of AustralianPost BarCode.DEFAULT is CustomerInformationInterpretingType.OTHER.

Parameters
value: The interpreting type (CTable, NTable or Other) of customer information for AustralianPost BarCode

◆ setIgnoreEndingFillingPatternsForCTable()

def setIgnoreEndingFillingPatternsForCTable (   self,
  value 
)