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

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

Inherits 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 BaseJavaClass
def getJavaClass (self)
 
def setJavaClass (self, javaClass)
 
def getJavaClassName (self)
 
def isNull (self)
 
def printJavaClassName (self)
 

Additional Inherited Members

- Public Attributes inherited from 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", BarCodeImageFormat.PNG)
reader = Recognition.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 __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ equals()

def equals (   self,
  obj 
)

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

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

◆ getCheckSum()

def getCheckSum (   self)

Gets the checksum for 1D barcodes.

Value: The checksum for 1D barcode.

◆ getValue()

def getValue (   self)

Gets the codetext of 1D barcodes without checksum.

Value: The codetext of 1D barcodes without checksum.

◆ hashCode()

def hashCode (   self)

Returns the hash code for this instance.

Returns
: A 32-bit signed integer hash code.

◆ init()

def init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

def 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 toString (   self)

Returns a human-readable string representation of this OneDExtendedParameters.

Returns
: A string that represents this OneDExtendedParameters.