Page 1 of 1

QRCode reading issue

Posted: Wed Apr 11, 2018 4:40 am
by diogosouza
Hi,

We are having problems in reading the qr code, only 70% of the qrcodes are read by the GDPicture. I wonder if you have any configuration that can be made to improve accuracy.

The problem is not with qr code, because we can read it with the Barcode Scanner application through SmartPhone.

We try FxSmooth but with no success.

Our version is Ultimate 12.0.65.

An example is attached.

Code:

Code: Select all

        private string BarcodeRecognation(int imageID)
        {
            var barcode = string.Empty;
            try
            {
                this.GdPictureImaging.BarcodeQRReaderDoScan(imageID, BarcodeQRReaderScanMode.BestQuality, 1);
                int bcfound = GdPictureImaging.BarcodeQRReaderGetBarcodeCount();

                if (bcfound > 0)
                {
                    for (int i = 1; i <= bcfound; i++)
                    {
                        barcode = this.GdPictureImaging.BarcodeQRReaderGetBarcodeValue(i);
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
                throw;
            }
            finally
            {
                this.GdPictureImaging.BarcodeQRReaderClear();
            }

            return barcode;
        }
Thank you

Re: QRCode reading issue

Posted: Thu Apr 12, 2018 8:29 am
by Costinel
Hi,

The problem in you image is that there is no quiet zone around the QR Code, as required by the specifications of the Qr Code. There should be a white zone around the barcode. You may see that in your image there is a black line touching the Finder Pattern on top-right of the barcode.

I managed to read the barcode using Erode filter before the barcode finding process, see: http://guides.gdpicture.com/content/GdP ... rode4.html

Best regards,
Costinel Mitrea

Re: QRCode reading issue

Posted: Thu Apr 12, 2018 12:03 pm
by diogosouza
Hi,

Thanks for the reply, I did not know that request.