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

Free Support Forum - aspose.com

Aspose barcode cannot read all data matrix barcodes

Hello, dear community,

I have an issue with the Aspose barcode reader. It seems like it cannot get any result after scanning these png barcodes images while using Leadtools library it can read.

What can be the reason and how to fix this problem?

Grateful for any help

CaptureResultAspose.PNG (4.0 KB)

CaptureResultAspose.PNG (4.01 KB)
CodeAspose.PNG (60.9 KB)
ct14807196352-20220331172255815-245-1-copy.png (72.0 KB)
ct14807196352-20220403155905493-292-2-copy.png (73.5 KB)
ct14807196352-20220331171720990-335-5-copy.png (73.3 KB)


Thanks for the sample image files.

Please notice, I am able to reproduce the issue as you mentioned by using your barcode image (PNG) files. It seems Aspose.BarCode cannot get any results after scanning these PNG barcodes images.
Sample code:

            var bmp1 = "e:\\test2\\ct14807196352-20220331172255815-245-1-copy.png";
            //var bmp1 = new Bitmap("e:\\test2\\ct14807196352-20220403155905493-292-2-copy.png");
            //var bmp1 = new Bitmap("e:\\test2\\ct14807196352-20220331171720990-335-5-copy.png");

            using (Aspose.BarCode.BarCodeRecognition.BarCodeReader reader1 = new Aspose.BarCode.BarCodeRecognition.BarCodeReader(bmp1, Aspose.BarCode.BarCodeRecognition.DecodeType.AllSupportedTypes))

                foreach (Aspose.BarCode.BarCodeRecognition.BarCodeResult result1 in reader1.ReadBarCodes())
                    // Read symbology type and code text
                    Console.WriteLine("Symbology Type: " + result1.CodeType);
                    Console.WriteLine("CodeText: " + result1.CodeText);

I have logged a ticket with an id “BARCODENET-38171” for your issue. We will look into it soon.

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

1 Like

Thank you I am waiting for your updates


Sure, we will keep you posted with updates (once available) on your issue.