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

Free Support Forum - aspose.com

Datamatrix Recognition Problems

Hi.

We have some problems with barcode-recognition (datamatrix) from pdf.

Barcode ist recognized, but we get the wrong decoded text-string.
See the attached testfile.
Barcode is recognised as "1-KOE-SH-001"
correct decode should be "1-KOE-SCH-001"

We are using the latest dlls (aspose.barcode 5.6.2.0 and aspose.pdf 8.3.0.0).

Here is our code:

Aspose.Pdf.Facades.PdfExtractor extractor = new Aspose.Pdf.Facades.PdfExtractor();
extractor.BindPdf(source);
extractor.StartPage = 1;
extractor.EndPage = 1;
extractor.ExtractImage();
if (!extractor.HasNextImage()) return 0;
extractor.GetNextImage(ms);
ms.Position = 0;
reader = new BarCodeReader(ms, BarCodeReadType.DataMatrix);
reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing;
while (reader.Read())
{
BarCode.Add(reader.GetCodeText());
}

Christian.


Hi Christian,

Thanks for sharing the sample PDF file. I tested your provided sample against the latest builds of Aspose.BarCode 5.6.2.0 and Aspose.Pdf 8.3.0. I regretfully inform you that I'm able to replicate the incorrect recognition problem. This problem has been logged in our bug tracking system under ticket Id BARCODENET-33631. We will soon investigate the cause of recognition failure. You will also be notified once the fix for your problem is available for public use.

Please accept our apologies for your inconvenience.

Hi Christian,

We have a good news for you that the issue id BARCODENET-33631 has now been resolved and its fix will be included in the next version of Aspose.BarCode for .NET (5.7.0). Which is expected after 3 or 4 weeks. We will inform you via this forum thread as soon as the new release is published.

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


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