QualitySettings API Overhaul
Fine-tune barcode recognition using the new QualitySettings
API with Aspose.BarCode for Node.js via Java 24.2. Enhance success rates for low-quality barcodes and optimize processing based on image complexity.
Expanded Barcode Support
Node.js developers can easily generate and recognize Micro QR and rMQR barcodes within their barcode processing solutions and extend their application’s functionality. Please check out the following code sample, which demonstrates how to generate and recognize Micro QR codes.
let codetext = "Aspose";
let generator = new BarcodeGenerator(EncodeTypes.MICRO_QR, codetext);
generator.getParameters().getBarcode().getQR().setMicroQRVersion(MicroQRVersion.M4);
let image = generator.generateBarCodeImage(BarCodeImageFormat.PNG);
let reader = new BarCodeReader(image, null, DecodeType.MICRO_QR);
let barCodeResults = reader.readBarCodes();
let barCodeResult = barCodeResults[0];
console.log('CodeText:' + barCodeResult.getCodeText());
console.log('CodeType: ' + barCodeResult.getCodeTypeName());
Source*
Improved Recognition Accuracy
The latest Node.js library release lets you experience better recognition accuracy with fixes for DotCode
barcode processing, license character handling, and data matrix barcode reading from TIFF images.
Bug Fixes
In this version of the library, we have improved stability and performance with bug fixes for DotCode
recognition, license handling, and data matrix barcode reading.
Public API and Backward Incompatible Changes
Added API Members
We added several QualitySettings
API members to further enhance the stability and performance of our Node.js barcode library. Some of the newly added API members are shared below.
- Recognition.BarcodeQualityMode (values HIGH/NORMAL/LOW)
- Recognition.DeconvolutionMode (values: FAST/NORMAL/SLOW)
- Recognition.InverseImageMode (values AUTO/DISABLED/ENABLED)
- Recognition.ComplexBackgroundMode (values AUTO/DISABLED/ENABLED)
- setXDimension(value): Recognition mode, which sets the size (from 1 to infinity) of the barcode minimal element (a matrix cell or bar).
- getXDimension(): Recognition mode, which sets the size (from 1 to infinity) of the barcode minimal element (a 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 elements with lower quality require more hard methods, which slows the recognition.
- getBarcodeQuality(): Mode, which enables methods to recognize barcode elements with the selected quality. Barcode elements with lower quality require more hard methods, which slows the recognition.
- setDeconvolution(value): Deconvolution (image restorations) mode, which defines the level of image degradation.
- getDeconvolution(): Deconvolution (image restorations) mode, which defines the level of image degradation.
Removed API Members
Similarly, we have removed various QualitySettings
API members in this release. Some of these are:
- 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
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.BarCode for Node.js via Java 24.2 Release Notes.