Aspose.BarCode for Python via Java  24.11
Aspose.Barcode for Python via Java Generation and Recognition API docs
Code128ExtendedParameters Class Reference

Stores special data of Code128 recognized barcode. More...

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
bool __eq__ (self, Code128ExtendedParameters other)
 Returns a value indicating whether this instance is equal to a specified Code128ExtendedParameters value. More...
 
int __hash__ (self)
 Returns the hash code for the current instance. More...
 
str __str__ (self)
 Returns a human-readable string representation of this Code128ExtendedParameters. More...
 
Optional[List[Code128DataPortion]] getCode128DataPortions (self)
 Gets Code128DataPortion array of recognized Code128 barcode. More...
 
None init (self)
 
bool isEmpty (self)
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Static Public Member Functions

List[Code128DataPortionconvertCode128DataPortions (javaCode128DataPortions)
 

Public Attributes

 code128DataPortions
 
- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Stores special data of Code128 recognized barcode.

Represents the recognized barcode's region and barcode angle

This sample shows how to get code128 raw values

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128, "12345")
generator.save(self.image_path_to_save, Generation.BarCodeImageFormat.PNG)
reader = Recognition.BarCodeReader(self.image_path_to_save, None, Recognition.DecodeType.CODE_128)
for result in reader.readBarCodes():
print("\nBarCode Type: " + result.getCodeTypeName())
print("BarCode CodeText: " + result.getCodeText())
print("Code128 Data Portions: " + str(result.getExtended().getCode128()))

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ __eq__()

bool __eq__ (   self,
Code128ExtendedParameters  other 
)

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

Parameters
obj is object value to compare to this instance.
Returns
: True if obj has the same value as this instance otherwise, False.

◆ __hash__()

int __hash__ (   self)

Returns the hash code for the current instance.

Returns
A hash code for the current object.

◆ __str__()

str __str__ (   self)

Returns a human-readable string representation of this Code128ExtendedParameters.

Returns
: A string that represents this Code128ExtendedParameters.

◆ convertCode128DataPortions()

List[Code128DataPortion] convertCode128DataPortions (   javaCode128DataPortions)
static

◆ getCode128DataPortions()

Optional[List[Code128DataPortion]] getCode128DataPortions (   self)

Gets Code128DataPortion array of recognized Code128 barcode.

Returns
value of the Code128DataPortion.

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

bool isEmpty (   self)

Member Data Documentation

◆ code128DataPortions

code128DataPortions