@ajj
Several properties in the QualitySettings class were removed in Aspose.Barcode for .NET 24.1, including AllowQRMicroQrRestoration, AllowDatamatrixIndustrialBarcodes, AllowDetectScanGap, AllowSaltAndPaperFiltering, AllowMicroWhiteSpotsRemoving, AllowOneDFastBarcodesDetector, UseOldBarcodeDetector, AllowRegularImage, AllowDecreasedImage, AllowOneDWipedBarsRestoration, MedianSmoothingWindowSize, AllowMedianSmoothing, and AllowWhiteSpotsRemoving . This change is documented in the 24.1 release notes, which highlights breaking changes due to a re-architected barcode reading engine .
The removal of these granular settings reflects a shift toward a more intelligent, automated recognition system. Aspose now handles image preprocessing (e.g., noise filtering, contrast adjustment, gap detection) internally using improved algorithms, eliminating the need for manual tuning of individual flags .
For developers upgrading from version 22 to 25, the recommended alternative is to use the new static QualitySettings presets:
QualitySettings.HighQualityDetection: Best for low-quality, damaged, or complex background barcodes (e.g., industrial DataMatrix) .
QualitySettings.MaxBarCodes: Use when multiple barcodes are expected and maximum detection sensitivity is required.
QualitySettings.NormalQualityDetection: Suitable for standard-quality images with minimal noise.
These presets internally apply optimized combinations of preprocessing and detection strategies, replacing the need for deprecated properties like AllowSaltAndPaperFiltering, AllowDetectScanGap, or UseOldBarcodeDetector .
For example, replace your old code:
reader.QualitySettings.AllowDatamatrixIndustrialBarcodes = true;
reader.QualitySettings.AllowSaltAndPaperFiltering = true;
reader.QualitySettings.UseOldBarcodeDetector = true;
With the modern equivalent:
reader.QualitySettings = QualitySettings.HighQualityDetection;
This approach simplifies configuration while maintaining or improving recognition accuracy for challenging barcodes . If specific edge cases persist, consider preprocessing images externally (e.g., contrast enhancement, denoising) before passing them to Aspose.Barcode.