The library cannot recognize the barcode in the attached scan


#1

Hello. The library cannot recognize the barcode in the attached scan tverplk21-2019-05-28T154505 0001.jpg (504.8 KB). The https://online-barcode-reader.inliteresearch.com/ resource successfully recognizes %116%1930041. Library version Aspose.BarCode 19.2.0. Code example:

var result = new List<string>();
        using (var stream = new MemoryStream(content))
        {
            using (var reader = new BarCodeReader(stream))
            {
                if (!reader.IsLicensed)
                {
                    throw new ApplicationException("Aspose not licensed");
                }

                //seconds
                reader.Timeout = (int)TimeSpan.FromSeconds(60).TotalMilliseconds;
                
                while (reader.Read())
                {
                    var code = reader.GetCodeText();
                    if (!string.IsNullOrEmpty(code))
                    {
                        result.Add(code);
                    }
                }
            }
        }

        return result.ToArray();

#2

@Gleb,

Thanks for the sample code and image file.

I tested your scenario/ case using your sample code with your sample image file using v19.5 (latest version), it works partially. Here are the two barcode text it retrieves:
431019181826201032
200000074776

It looks like the first one is not correct. Do you see the same issue? We will log a ticket after your confirmation.


#3

Yes, barcodes are recognized as you specified.


#4

@Gleb,

Thanks for your confirmation.

As we managed to reproduce the issue as you mentioned using your sample code and with image file, I have logged a ticket with an id “BARCODENET-37223” for your issue. We will look into it soon.

Once we have an update on it, we will let you know.


#5

@Gleb,

We are pleased to inform you that your issue (logged earlier as “BARCODENET-37223”) has bee resolved. We will soon share the Download link to the fixed version/latest release for your requirement.


#6

Thank you very much for the prompt solution of the problem.


#7

@Gleb,

You are welcome.