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

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

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
bool equals (self, Code128ExtendedParameters obj)
 Returns a value indicating whether this instance is equal to a specified Code128ExtendedParameters value. More...
 
Optional[List[Code128DataPortion]] getCode128DataPortions (self)
 Gets Code128DataPortion array of recognized Code128 barcode. More...
 
int hashCode (self)
 Returns the hash code for this instance. More...
 
None init (self)
 
bool isEmpty (self)
 
str toString (self)
 Returns a human-readable string representation of this Code128ExtendedParameters. More...
 
- 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

◆ convertCode128DataPortions()

List[Code128DataPortion] convertCode128DataPortions (   javaCode128DataPortions)
static

◆ equals()

bool equals (   self,
Code128ExtendedParameters  obj 
)

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.

◆ getCode128DataPortions()

Optional[List[Code128DataPortion]] getCode128DataPortions (   self)

Gets Code128DataPortion array of recognized Code128 barcode.

Returns
value of the Code128DataPortion.

◆ hashCode()

int hashCode (   self)

Returns the hash code for this instance.

Returns
: A 32-bit signed integer hash code.

◆ init()

None init (   self)

Reimplemented from BaseJavaClass.

◆ isEmpty()

bool isEmpty (   self)

◆ toString()

str toString (   self)

Returns a human-readable string representation of this Code128ExtendedParameters.

Returns
: A string that represents this Code128ExtendedParameters.

Member Data Documentation

◆ code128DataPortions

code128DataPortions