We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problems decoding qrcode (java version- tested with 1.9.0 and 2.1.0)


i need decoding qrcode inside this image http://asp.rds-software.com/asptest/downloaded/scan.jpg

Fragment code of my app is this

BufferedImage image;
try {
image = ImageIO.read(new File(file));
} catch (IOException ex) {
throw new CannotDecodeException("Cannot open image file", ex);
if (image == null) {
throw new CannotDecodeException("Cannot open image file", new NullPointerException(file));

BarCodeReader reader = new BarCodeReader(image, BarCodeReadType.QR);
Vector vResult = new Vector();
return (String[])vResult.toArray(new String[0]);

BarCodeReader not decodes qrcode.

Reducing image size of 25% or 50% decoder recognize qrcode, but workaround is not acceptable by the end user !!!



Thanks for considering Aspose.

Could you please use RecognitionHints.ImageBinarizationHints.MedianSmoothing() in SetHints() method. I can decode the barcode and find the codetext by using MedianSmoothing.