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

Free Support Forum - aspose.com

QR Code not recognized on scanned document

Hi,


We’ve been trying out the barcode product.
However it seems really hard to decode a QR code with the decoder if the document isn’t at least 300dpi, even if the QR code has been generated with error correction to the highest level, and even if a region was specified.
We’ve been trying out other decoder and they decode it fine so I was wondering why is it that the one of aspose has so much trouble decoding it?

Is it possible to check it out and let us know quickly if this can be a bug as we’re test driving the product and need to know if it’s a viable option for our company.

(See enclosed attachment, one with the QR Code having no error correction and the other one having a LevelH of correction).

Code that was used to read the barcode:
BarCodeReader reader = new BarCodeReader(@“BW_150dpi_EC30.jpg”, BarCodeReadType.QR);
        reader.ExpectedBarCodeCount = 1;
        reader.OrientationHints = <span style="color:#2b91af;">RecognitionHints</span>.<span style="color:#2b91af;">Orientation</span>.NoRotate;
        <span style="color:blue;">while</span> (reader.Read())
        {
            <span style="color:#2b91af;">MessageBox</span>.Show(reader.GetCodeText());
        }
        Exit();</pre><pre style="font-family: Consolas; font-size: 13px; background-color: white; background-position: initial initial; background-repeat: initial initial; "><br></pre><pre style="font-family: Consolas; font-size: 13px; background-color: white; background-position: initial initial; background-repeat: initial initial; ">We tried to by using a rectangle area, but didn't changed anything.</pre></div>

We’ve just tested for a DataMatrix Code, on a document scanned in 300 DPI and it isn’t being recognized either. But on a 150 dpi it is.


It unfortunately seems inconsistent :frowning:

Hi Maxime,

Thank you for your inquiry. The ideal resolution for recognition purposes is 300dpi and more. If the image has lower resolution then you may lead to scan failure. In addition, I would like to add that Aspose.BarCode for .NET provides better and faster barcode recognition using image processing techniques. MedianSmoothing removes the noise from the image while preserving the image edges. Latest version contains the support to rotate barcode manually and then perform the recognition.

However, I have tested your provided samples against the latest build of Aspose.BarCode for .NET v5.0.0. I regretfully inform you that the latest version was unable to to recognize the barcodes from your samples. This problem has been logged in our bug tracking system under ticket Id BARCODENET-33332. We will soon investigate the cause of recognition failure and share our results here. Also, you will be notified once the fix for your problem is available for public use.

It would be great if you can share DataMatrix barcodes here in this thread. We’ll take a closer look and guide you accordingly.

Please accept our apologies for your inconvenience.

Hi,


Thanks for your response.
We’ve tried the different algorithms without any success.

However we’ve had more success increasing the size of the DataMatrix code in the document.

Here is bellow, another code we’ve tried. Aztec, as we were trying to get to see which code would be the easiest to recognized and reliable.

Both 150 dpi b&w and 300dpi color aren’t recognized.

Hi Maxime,


Thanks for the additional information. Im unable to recognize these barcodes with latest version of Aspose.BarCode for .NET v5.0.0.0. I have passed this information to our development team. As soon as we have made some significant progress, we would be more than happy to update you with the status of correction. We are sorry for this inconvenience.

Hi Maxime,


Good News for you is BARCODENET-33330 has been resolved in BarCode for .NET v5.1 and you can download its fix version from download page here. Furthermore, we’re entertaining image (5).jpg and image (7).jpg as separate issue with id BARCODENET-33349. We will soon investigate the cause of recognition failure and you will be notified once the fix for your problem is available for public use.

thank you very much!

The DataMatrix code seem to be the one with less issue.

We increased it's size and it seemed to be more easily recognized when a document was scanned in 150dpi.

As an example, the following datamatrix code isn’t being recognized.

it seems that’s if the code isn’t perfectly straight up on the page (meaning if the page was scanned a little but on the side) the barcode isn’t recognized.

Hi Maxime,

Thank you for your details. I've tested your provided sample against the latest build of Aspose.BarCode for .NET v5.1.0. I regretfully inform you that the latest version was unable to recognize the barcode from your sample. This problem has been logged in our bug tracking system under ticket Id BARCODENET-33351. We will soon investigate the cause of recognition failure and share our results here. Also, you will be notified once the fix for your problem is available for public use.

We're sorry for your inconvenience.

Hi Maxime,

Thanks for your patience. Good news for you is BARCODENET-33351 has now been resolved and its fix will be included in the next version of Aspose.BarCode for .NET (5.6.0). Which is expected after one or two weeks. We will inform you via this forum thread as soon as the new release is published.

Hi Maxime,

Another good news for you is BARCODENET-33349 has now been resolved and its fix will be included in the next version of Aspose.BarCode for .NET (5.6.0).

The issues you have found earlier (filed as BARCODENET-33349) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as BARCODENET-33351) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.