Hi Lena,
Thank you for asking about the resolution. I'm afraid. This issue is pending for analysis and not resolved yet. By the way, I would like to update you that our development team has plans to include the fix of issue id BARCODENET-33810 in our future release of Aspose.BarCode for .NET 6.2.0. It is expected to be released at the start April 2014. It's all depend upon if everything goes by plans. We will let you know once the issue is resolved.
Hi Lena,
It is to update you that as a workaround you can recognize DataMatrix code by using following source below and try using the latest version of Aspose.BarCode for .NET 6.0.0.
BarCodeReader reader = new BarCodeReader(@“2.png”, BarCodeReadType.DataMatrix);
reader.OrientationHints = RecognitionHints.Orientation.Rotate90;
reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing;
while (reader.Read())
{
Console.WriteLine("Symbology: " + reader.GetReadType() + " CodeText: " + reader.GetCodeText());
}
reader.Close();
Result:
Symbology: DataMatrix CodeText: 10056004350113100300004
Please do let us know your feedback.
Hi,
Yes, after add below syntax, it can be read out.
reader.OrientationHints = RecognitionHints.Orientation.Rotate90;
reader.ImageBinarizationHints = RecognitionHints.ImageBinarization.MedianSmoothing;
1. But it is only for this barcode, right?
Can I add RecognitionHints.ImageBinarization.MedianSmoothing for all kinds of barcode? I'm afraid it will affect other barcodes can not be read. Could you please give me some instructions?
2. And another barcode as attached can be read using 5.7.0 and 5.9.0, but not using 6.0.0. Could you please check?
Lena
Hi,
Actually, in 4.1.0, I do not need to add these source. Could you please change to be like 4.1.0?
Thanks,
Lena
Hi Lena,
Thank you for sharing details.
hollytek: 1. But it is only for this barcode, right?
Can I add RecognitionHints.ImageBinarization.MedianSmoothing for all kinds of barcode? I’m afraid it will affect other barcodes can not be read. Could you please give me some instructions?
You are right. Let me elaborate a bit more that MedianSmoothing technique removes the noise from the image while preserving the image edges. It is a filter and fruitful for noised barcode images. You could find other details in this documented article:
Better and Faster Image Processing for Barcode Recognition
There are several other factors contributing in scan failure, like the presence of noise in the image, skewed bar code labels, punch holes/white spots, etc. Severity of one such factor or a combination of two or more makes it difficult for the BarCodeRecognition algorithm to scan a bar code properly.
hollytek: 2. And another barcode as attached can be read using 5.7.0 and 5.9.0, but not using 6.0.0. Could you please check?
I managed to replicate the problem of recognition failure. It is extended vertically. I have logged this problem under ticket id BARCODENET-33821 in our issue tracking system. We’ll keep you update regarding the progress. We’re sorry for your inconvenience.
Actually, in 4.1.0, I do not need to add these source. Could you please change to be like 4.1.0?
Please note that each new release contains many improvements, bug fixes and new features. So we always recommend our customers use the latest version of Aspose APIs. Aspose.BarCode 4.1.0 is a quite old version.
PS: It is quite possible that your app’s end users come across some issues with an old version of Aspose.BarCode. In this case, this will become impossible for us to fix those issues in the previous code base.
Hi,
With ComplexBackground technique, this barcode can be read.
But I think it is not reasonable. In 5.9, we do not need to use ComplexBackground technique, it can be read. And also to the previous barcode, it can be read in 4.1.0 without MedianSmoothing technique.
You know your product is integrated in our software, and our customers’ barcode may be various. So how do I know to add which technique? Because we don’t want to let customer to try the different technique. It’s better that there is a general way for all kinds of barcodes. Could you please give me some instructions? Thanks so much.
Lena
Hi Lena,
Thank you for these details. We could understand the problem. It is a workaround that you can check other techniques as well. We have logged these problems to provide you a general way for all types of barcodes. Please be patient and spare us a little time.
Hi,
For the first barcode I posted, it also can not be read in 6.2.0 without any settings. It need to set the Rotation. Actually, it do not need to set the rotation in 4.1.0.
Thanks,
Lena
The issues you have found earlier (filed as BARCODENET-33810) have been fixed in Aspose.BarCode for .NET 6.9.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
The issues you have found earlier (filed as BARCODENET-33821) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.