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

Base class for encoding and decoding the text embedded in the MaxiCode code. More...

Inherits IComplexCodetext.

Inherited by MaxiCodeStandardCodetext, and MaxiCodeStructuredCodetext.

Public Member Functions

def getMode (self)
def getMaxiCodeEncodeMode (self)
def setMaxiCodeEncodeMode (self, value)
def getECIEncoding (self)
def setECIEncoding (self, value)
def getBarcodeType (self)
- Public Member Functions inherited from IComplexCodetext
def __init__ (self, javaClass)
def getConstructedCodetext (self)
 Construct codetext for complex barcode. More...
def initFromString (self, constructedCodetext)
 Initializes instance with constructed codetext. More...
- Public Member Functions inherited from BaseJavaClass
def init (self)
def getJavaClass (self)
def setJavaClass (self, javaClass)
def getJavaClassName (self)
def isNull (self)
def printJavaClassName (self)

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass

Detailed Description

Base class for encoding and decoding the text embedded in the MaxiCode code.

This sample shows how to decode raw MaxiCode codetext to MaxiCodeCodetext instance.

reader = Recognition.BarCodeReader("c:\\test.png", None, DecodeType.MAXI_CODE) for result in reader.readBarCodes(): resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText()) print("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType()) print("MaxiCode mode: " + resultMaxiCodeCodetext.getMode()) print("BarCode CodeText: " + resultMaxiCodeCodetext.getConstructedCodetext())

Member Function Documentation

◆ getBarcodeType()

def getBarcodeType (   self)
Gets barcode type.
:return:Barcode type

Reimplemented from IComplexCodetext.

◆ getECIEncoding()

def getECIEncoding (   self)
Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.

◆ getMaxiCodeEncodeMode()

def getMaxiCodeEncodeMode (   self)
Gets a MaxiCode encode mode.

◆ getMode()

def getMode (   self)
Gets MaxiCode mode.
:return: MaxiCode mode

Reimplemented in MaxiCodeCodetextMode3, MaxiCodeCodetextMode2, and MaxiCodeStandardCodetext.

◆ setECIEncoding()

def setECIEncoding (   self,
Sets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.

◆ setMaxiCodeEncodeMode()

def setMaxiCodeEncodeMode (   self,
Sets a MaxiCode encode mode.