QRCode reading issue

Discussions about qrcode barcode reading and writing
Post Reply
diogosouza
Posts: 3
Joined: Mon Sep 25, 2017 8:26 pm

QRCode reading issue

Post by diogosouza » Wed Apr 11, 2018 4:40 am

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
Last edited by diogosouza on Thu Apr 12, 2018 7:55 pm, edited 1 time in total.

Costinel
Posts: 27
Joined: Mon Jul 11, 2016 9:35 am

Re: QRCode reading issue

Post by Costinel » Thu Apr 12, 2018 8:29 am

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

diogosouza
Posts: 3
Joined: Mon Sep 25, 2017 8:26 pm

Re: QRCode reading issue

Post by diogosouza » Thu Apr 12, 2018 12:03 pm

Hi,

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests