Hi,
I have an issue with the aspose barcode reader library.
It takes a lot of time to find a barcode (30-45 seconds) and it consumes a lot of memory too around 800MB - 1GB of memory).
Maybe you guys have some hints on how to improve this.
My code is this
BarCodeReader reader = new BarCodeReader(file.getAbsolutePath(), DecodeType.PDF_417);
reader.setQualitySettings(QualitySettings.getMaxBarCodes());
for (BarCodeResult result : reader.readBarCodes()) {
System.out.println("CodeText: " + result.getCodeText());
System.out.println("Symbology type: " + result.getCodeType());
System.out.println("Percentage recognition: " + result.getReadingQuality());
}
barcode_not_read_1654259282216_141421056659050501249399593.jpg (2.1 MB)
Without the quality setting QualitySettings.getMaxBarCodes() the barcode is not recognized but the result is a lot faster (5-7 seconds). Memory consumption is a bit smaller.
I also tried to binarize the images but recognition gets worse if I do that.
I’ve attached the problematic barcode
Thank you