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

Stores special data of 1D recognized barcode like separate codetext and checksum. More...

Inherits asposebarcode.Assist.BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
def init (self)
 
def getValue (self)
 Gets the codetext of 1D barcodes without checksum. More...
 
def getCheckSum (self)
 Gets the checksum for 1D barcodes. More...
 
def isEmpty (self)
 Tests whether all parameters has only default values Value: Returns. More...
 
def equals (self, obj)
 Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value. More...
 
def hashCode (self)
 Returns the hash code for this instance. More...
 
def toString (self)
 Returns a human-readable string representation of this OneDExtendedParameters. More...
 
- Public Member Functions inherited from asposebarcode.Assist.BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Additional Inherited Members

- Public Attributes inherited from asposebarcode.Assist.BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Stores special data of 1D recognized barcode like separate codetext and checksum.

This sample shows how to get 1D barcode value and checksum

generator = BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128")
generator.save("test.png")
reader = BarCodeReader("test.png", None, DecodeType.EAN_13)
for result in reader.readBarCodes():
print("BarCode Type: " + result.getCodeTypeName())
print("BarCode CodeText: " + result.getCodeText())
print("BarCode Value: " + result.getExtended().getOneD().getValue())
print("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum())

Constructor & Destructor Documentation

◆ __init__()

def asposebarcode.Recognition.OneDExtendedParameters.__init__ (   self,
  javaClass 
)

Member Function Documentation

◆ equals()

def asposebarcode.Recognition.OneDExtendedParameters.equals (   self,
  obj 
)

Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.

:param: obj An System.Object value to compare to this instance. :return: true if obj has the same value as this instance otherwise, false.

◆ getCheckSum()

def asposebarcode.Recognition.OneDExtendedParameters.getCheckSum (   self)

Gets the checksum for 1D barcodes.

Value: The checksum for 1D barcode.

◆ getValue()

def asposebarcode.Recognition.OneDExtendedParameters.getValue (   self)

Gets the codetext of 1D barcodes without checksum.

Value: The codetext of 1D barcodes without checksum.

◆ hashCode()

def asposebarcode.Recognition.OneDExtendedParameters.hashCode (   self)

Returns the hash code for this instance.

:return: A 32-bit signed integer hash code.

◆ init()

def asposebarcode.Recognition.OneDExtendedParameters.init (   self)

◆ isEmpty()

def asposebarcode.Recognition.OneDExtendedParameters.isEmpty (   self)

Tests whether all parameters has only default values Value: Returns.

<b>true</b>

if all parameters has only default values otherwise,

<b>false</b>

.

◆ toString()

def asposebarcode.Recognition.OneDExtendedParameters.toString (   self)

Returns a human-readable string representation of this OneDExtendedParameters.

:return: A string that represents this OneDExtendedParameters.