Browse our Products

Aspose.BarCode for Python via Java 24.2

All Changes

KeySummaryCategory
BARCODENET-38800Update QualitySettings API structureEnhancement
BARCODENET-38807Add support of rMQR barcodeEnhancement
BARCODENET-38868BarCodeReader could not find DotCodeBug
BARCODEJAVA-1778License engine should accept characters that do not belong ASCII encoding standardEnhancement
BARCODEJAVA-17Unable to Read the DataMatrix barcode successfully from a TIFF imageBug
BARCODEJAVA-683Recognition of Micro QR code gives incorrect resultBug
BARCODEJAVA-1430Issue with data matrix detection/recognitionBug
BARCODEJAVA-1742Barcode label not shown for type PDF147 and QRBug

Public API and Backward Incompatible Changes

QualitySettings API

Added new enums:

  • Recognition.XDimensionMode (values AUTO,SMALL,NORMAL,LARGE,USE_MINIMAL_X_DIMENSION),
  • Recognition.BarcodeQualityMode (values HIGH/NORMAL/LOW),
  • Recognition.DeconvolutionMode (values FAST/NORMAL/SLOW),
  • Recognition.InverseImageMode (values AUTO/DISABLED/ENABLED),
  • Recognition.ComplexBackgroundMode (values AUTO/DISABLED/ENABLED).

Added new Recognition.QualitySettings methods:

  • setXDimension(value) - Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
  • getXDimension() - Recognition mode which sets size (from 1 to infinity) of barcode minimal element: matrix cell or bar.
  • setMinimalXDimension(value) - Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
  • getMinimalXDimension() - Minimal size of XDimension in pixels which is used with UseMinimalXDimension.
  • setBarcodeQuality(value) - Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
  • getBarcodeQuality() - Mode which enables methods to recognize barcode elements with the selected quality. Barcode element with lower quality requires more hard methods which slows the recognition.
  • setDeconvolution(value) - Deconvolution (image restorations) mode which defines level of image degradation.
  • getDeconvolution() - Deconvolution (image restorations) mode which defines level of image degradation.
  • setInverseImage(value) - Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
  • getInverseImage() - Mode which enables or disables additional recognition of barcodes on images with inverted colors (luminance).
  • setComplexBackground(value) - Mode which enables or disables additional recognition of color barcodes on color images.
  • getComplexBackground() - Mode which enables or disables additional recognition of color barcodes on color images.
  • setAllowIncorrectBarcodes(value) - Mode which allows engine to recognize barcodes which has incorrect checksumm or incorrect values.
  • getAllowIncorrectBarcodes() - Mode which allows engine to recognize barcodes which has incorrect checksumm or incorrect values.

Added new QualitySettings methods (presets):

  • getHighPerformance(): QualitySettings - HighPerformance recognition quality preset. High quality barcodes are recognized well in this mode.
  • getNormalQuality(): QualitySettings - NormalQuality recognition quality preset. Suitable for the most of barcodes.
  • getHighQualityDetection(): QualitySettings - HighQuality recognition quality preset. This preset is developed for low quality barcodes. Allows to detect highly damaged barcodes.
  • getMaxQualityDetection(): QualitySettings - MaxQuality recognition quality preset. This preset is developed to recognize all possible barcodes, even incorrect barcodes.

Following QualitySettings API members were removed:

  • getMaxBarCodes(),
  • getHighQualityDetection(),
  • getMaxQualityDetection().
  • get/setAllowInvertImage,
  • get/setReadTinyBarcodes,
  • get/setCheckMore1DVariants,
  • get/setAllowComplexBackground,
  • get/setAllowMedianSmoothing,
  • get/setMedianSmoothingWindowSize,
  • get/setAllowRegularImage,
  • get/setAllowDecreasedImage,
  • get/setAllowWhiteSpotsRemoving,
  • get/setAllowOneDAdditionalScan,
  • get/setAllowOneDFastBarcodesDetector,
  • get/setFastScanOnly,
  • get/setAllowMicroWhiteSpotsRemoving,
  • get/setAllowSaltAndPaperFiltering,
  • get/setAllowDetectScanGap,
  • get/setAllowDatamatrixIndustrialBarcodes,
  • get/setAllowQRMicroQrRestoration,
  • get/setUseOldBarcodeDetector,
  • get/setAllowAdditionalRestorations,
  • get/setAllowOneDWipedBarsRestoration,
  • setDetectorSettings(BarcodeSvmDetectorSettings),
  • getDetectorSettings():BarcodeSvmDetectorSettings, Following BarcodeSvmDetectorSettings API members were removed:
  • ScanWindowSizes,
  • SimilarityCoef,
  • RegionLikelihoodThresholdPercent,
  • SkipDiagonalSearch,
  • HighPerformance,
  • NormalQuality,
  • HighQuality,
  • MaxQuality.

Micro QR and rMQR codes

Added enums Generation.MicroQRVersion (values AUTO,M1,M2,M3,M4) Generation.RectMicroQRVersion (values AUTO,R7x43,R7x59,R7x77,R7x99,R7x139,R9x43,R9x59,R9x77,R9x99,R9x139,R11x27,R11x43,R11x59,R11x77,R11x99,R11x139,R13x27,R13x43,R13x59,R13x77,R13x99,R13x139,R15x43,R15x59,R15x77,R15x99,R15x139,R17x43,R17x59,R17x77,R17x99,R17x139 ) Following members were added to class Recognition.DecodeType const RECT_MICRO_QR const MICRO_QR Following members were added to Generation.EncodeTypes const RECT_MICRO_QR const MICRO_QR New methods were added to Generation.QrParameters getRectMicroQrVersion():RectMicroQRVersion setRectMicroQrVersion(RectMicroQRVersion) getMicroQRVersion():MicroQRVersion setMicroQRVersion(MicroQRVersion)

Sample RectMicroQR generation and recognition code:

def example1(self):
  codetext = "Aspose"
  generator = Generation.BarcodeGenerator(Generation.EncodeTypes.RECT_MICRO_QR, codetext)
  generator.getParameters().getBarcode().getCodeTextParameters().setLocation(Generation.CodeLocation.BELOW)
  generator.getParameters().getBarcode().getQR().setRectMicroQrVersion(Generation.RectMicroQRVersion.R11x77)
  image = generator.generateBarCodeImage()
  reader = Recognition.BarCodeReader(image, None, Recognition.DecodeType.RECT_MICRO_QR)
  barCodeResults = reader.readBarCodes()
  barCodeResult = barCodeResults[0]
  print('CodeText:' + barCodeResult.getCodeText())
  print('CodeType: ' + barCodeResult.getCodeTypeName())

Sample MicroQR generation and recognition code:

def example2(self):
  codetext = "Aspose"
  generator = Generation.BarcodeGenerator(Generation.EncodeTypes.MICRO_QR, codetext)
  generator.getParameters().getBarcode().getQR().setMicroQRVersion(Generation.MicroQRVersion.M4)
  image = generator.generateBarCodeImage()
  reader = Recognition.BarCodeReader(image, None, Recognition.DecodeType.MICRO_QR)
  barCodeResults = reader.readBarCodes()
  barCodeResult = barCodeResults[0]
  print('CodeText:' + barCodeResult.getCodeText())
  print('CodeType: ' + barCodeResult.getCodeTypeName())