I have an image with two qrcode, and I’d like to read the left one, but it can not be recognized by Aspose. Here is the detailed information: 655ac41771d3cc7655aa2f9e copy.jpg (233.2 KB)
I tested your scenario/case with your both barcode images using latest version: Aspose.BarCode for Java, it works fine and I can read the QR code using the sample code segment:
e.g. Sample code:
com.aspose.barcode.License lic1 = new com.aspose.barcode.License();
lic1.setLicense("Aspose.BarCode.Java.lic");
Locale.setDefault(Locale.ENGLISH);
com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader("f:\\files\\24549210admin_24549210_655ac41771d3cc7655aa2f9e copy.jpg", DecodeType.QR);
//com.aspose.barcode.barcoderecognition.BarCodeReader reader = new com.aspose.barcode.barcoderecognition.BarCodeReader("f:\\files\\Screen Shot 2023-11-27 at 1.49.54 PM.png", DecodeType.QR);
com.aspose.barcode.barcoderecognition.BarCodeResult[] barCodeResults = reader.readBarCodes();
System.out.println(barCodeResults.length);
for (com.aspose.barcode.barcoderecognition.BarCodeResult barCodeResult : barCodeResults) {
String codeText = barCodeResult.getCodeText();
if (!codeText.startsWith("**")) {
Locale.setDefault(Locale.TAIWAN);
System.out.println(codeText.trim().replace("\n", ""));
}
}
I followed your advice and upgraded to version 23.11 in my Java Spring Boot project (Java version 11, Maven project). Unfortunately, the results were unsuccessful as the QR codes are still not being recognized.
Upon reviewing the code, the only difference between your sample and my snippet lies in the license part. I didn’t include the license – could this be the reason for the failure?
Additionally, when attempting to obtain a temporary license for testing purposes, I encountered issues with the website.
Yes, you may try with a valid (temporary) license if it works fine on your end. You may request a temporary license by posting in the Aspose.Purchase section.