Browse our Products

Aspose.BarCode for Python via Java 26.6

All Changes

KeySummaryCategory
BARCODENET-39559Improve CompactPdf417 barcodes recognition engineEnhancement
BARCODENET-39569Incorrect EAN13 barcode recognitionBug

Features and Improvements

Improved EAN-13 barcode recognition quality

The recognition quality of EAN-13 barcode symbology has been improved.

def test1(self):
    file_name = "test1.png"
    file_path = self.FOLDER + file_name
    generator = BarcodeGenerator(EncodeTypes.EAN_13, "8700216723077")
    generator.parameters.barcode.pdf_417.truncate = True
    generator.save(file_path, BarCodeImageFormat.PNG)
    reader = BarCodeReader(file_path, DecodeType.EAN_13)
    results = reader.read_barcodes()
    for result in results:
        print("CodeText =", result.code_text())
        print("CodeType =", result.code_type_name)

Improved PDF417 and Compact PDF417 barcode recognition quality

The recognition quality of PDF417 barcode symbologies has been improved, including:

  • PDF417
  • Compact PDF417
def test2(self):
    file_name = "test-2.png"
    file_path = self.FOLDER + file_name
    generator = BarcodeGenerator(EncodeTypes.PDF_417, "ASPOSE")
    generator.parameters.barcode.pdf_417.truncate = True
    generator.save(file_path, BarCodeImageFormat.PNG)

    decode_types = [
        DecodeType.PDF_417,
        DecodeType.COMPACT_PDF_417
    ]
    reader = BarCodeReader(file_path, decode_types)
    results = reader.read_barcodes()
    for result in results:
        print("CodeText =", result.code_text())
        print("CodeType =", result.code_type_name)