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

Stores special data of DataMatrix recognized barcode This sample shows how to get DataMatrix raw values. More...

Inherits BaseJavaClass.

Public Member Functions

def __init__ (self, javaClass)
 
bool equals (self, DataMatrixExtendedParameters obj)
 Returns a value indicating whether this instance is equal to a specified. More...
 
int getStructuredAppendBarcodeId (self)
 Gets the ID of the DataMatrix structured append mode barcode. More...
 
int getStructuredAppendBarcodesCount (self)
 Gets the DataMatrix structured append mode barcodes count. More...
 
str getStructuredAppendFileId (self)
 Gets the ID of the DataMatrix structured append mode barcode. More...
 
int hashCode (self)
 Returns the hash code for this instance. More...
 
None init (self)
 
bool isReaderProgramming (self)
 Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. More...
 
str toString (self)
 Returns a human-readable string representation of this. More...
 
- Public Member Functions inherited from BaseJavaClass
def getJavaClass (self)
 
str getJavaClassName (self)
 
bool isNull (self)
 
None printJavaClassName (self)
 
None setJavaClass (self, javaClass)
 

Additional Inherited Members

- Public Attributes inherited from BaseJavaClass
 javaClass
 
 javaClassName
 

Detailed Description

Stores special data of DataMatrix recognized barcode This sample shows how to get DataMatrix raw values.

generator = Generation.BarcodeGenerator(Generation.EncodeTypes.DATA_MATRIX, "12345")
generator.save(self.image_path_to_save, Generation.BarCodeImageFormat.PNG)
reader = Recognition.BarCodeReader(self.image_path_to_save, None, Recognition.DecodeType.DATA_MATRIX)
results = reader.readBarCodes()
for result in results:
print(f"\nBarCode Type: {result.getCodeTypeName()}")
print(f"BarCode CodeText: {result.getCodeText()}")
print(f"DataMatrix barcode ID: {str(result.getExtended().getDataMatrix().getStructuredAppendBarcodeId())}")
print(f"DataMatrix barcodes count: {str(result.getExtended().getDataMatrix().getStructuredAppendBarcodesCount())}")
print(f"DataMatrix file ID:{str(result.getExtended().getDataMatrix().getStructuredAppendFileId())}")
print(f"DataMatrix is reader programming: {result.getExtended().getDataMatrix().isReaderProgramming()}")

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  javaClass 
)

Reimplemented from BaseJavaClass.

Member Function Documentation

◆ equals()

bool equals (   self,
DataMatrixExtendedParameters  obj 
)

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

DataMatrixExtendedParameters

value.

Parameters
objAn System.Object value to compare to this instance.
Returns
<b>true</b>
if obj has the same value as this instance; otherwise,
<b>false</b>
.

◆ getStructuredAppendBarcodeId()

int getStructuredAppendBarcodeId (   self)

Gets the ID of the DataMatrix structured append mode barcode.

ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

Returns
: The ID of the DataMatrix structured append mode barcode.

◆ getStructuredAppendBarcodesCount()

int getStructuredAppendBarcodesCount (   self)

Gets the DataMatrix structured append mode barcodes count.

Default value is -1. Count must be a value from 1 to 35.

Returns
: The count of the DataMatrix structured append mode barcode.

◆ getStructuredAppendFileId()

str getStructuredAppendFileId (   self)

Gets the ID of the DataMatrix structured append mode barcode.

ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

Returns
The ID of the DataMatrix structured append mode barcode.

◆ 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.

◆ isReaderProgramming()

bool isReaderProgramming (   self)

Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.

Default value is false.

◆ toString()

str toString (   self)

Returns a human-readable string representation of this.

DataMatrixExtendedParameters

.

Returns
: A string that represents this DataMatrixExtendedParameters.