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

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

Inherits _MwWrapper.

Public Member Functions

def __init__ (self, _java_class)
 
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]] code_128_data_portions (self)
 
bool is_empty (self)
 

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 = BarcodeGenerator(EncodeTypes.CODE_128, "12345")
generator.save(image_path_to_save, BarCodeImageFormat.PNG)
reader = BarCodeReader(image_path_to_save, DecodeType.CODE_128)
for result in reader.read_barcodes():
print("\nBarCode Type:", result.code_type_name)
print("BarCode CodeText:", result.code_text)
print("Code128 Data Portions:", result.extended.code128)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  _java_class 
)

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.

◆ code_128_data_portions()

Optional[List[Code128DataPortion]] code_128_data_portions (   self)
Code128DataPortion array of the recognized Code128 barcode.

◆ is_empty()

bool is_empty (   self)