We downloaded the trial barcode reader application. Some times the reader can pick up the barcode on a Bill Of Lading document, and sometimes it can not. Before we move forward with purchasing the product we need to see if it will work. Can you tell me why.
Hi Terri,
Can you please share your sample application to reproduce the issue? We were not able to reproduce the issue at our end using the latest version of Aspose.Barcode for .NET i.e. 7.8.0. It reads the barcode from TIF file correctly. Following code was used to read barcodes from the TIF file.
using (BarCodeReader reader = new BarCodeReader("Scanned_BOLTif_20160405141947.TIF", DecodeType.AllSupportedTypes))
{
try
{
int found = 0;
while (reader.Read() == true)
{
found++;
Console.WriteLine("BarcodeType = {0}, BarcodeValue = {1}", reader.GetCodeType().ToString(), reader.GetCodeText());
}
Console.WriteLine("Found {0} barcodes\r\n", found);
}
finally
{
reader.Close();
}
}
You can also try the following options if it works at your end.
reader.RecognitionMode = RecognitionMode.MaxBarCodes;
reader.ManualHints = ManualHint.MedianSmoothing;
Best Regards,
Hi Terri,
We were able to reproduce this issue and it has been logged into our issue tracking system as BARCODENET-36174. We will keep you updated on this issue in this thread.
Sorry for the inconvenience.
Best Regards,
Is there an update for issue BARCODENET-36174? This is affecting an application we have in production. Please advise as to when a fix might be available. Thanks!
Thank you for the update. Can you give me an idea when the next release will be available? We have to determine if we are going to continue using Aspose or move on if we can’t get a fix soon.
Hi Terri,
This in fact is not an issue. You can use a combination of manual hints to resolve this issue even in the older version. Please check the following code for your reference.
BarCodeReader reader = null;
try
{
reader = new BarCodeReader(filename);
int found = 0;
reader.OrientationHints = RecognitionHints.Orientation.Rotate270;
reader.RecognitionMode = RecognitionMode.ManualHints;
reader.ManualHints = ManualHint.ComplexBackground | ManualHint.MedianSmoothing;
while (reader.Read() == true)
{
found++;
Console.WriteLine("BarcodeType = {0}, BarcodeValue = {1}", reader.GetCodeType().ToString(), reader.GetCodeText());
}
Console.WriteLine("Found {0} barcodes\r\n", found);
}
Best Regards,
As stated in the post above on 4/8/2016 at 9:30PM, we tried using the combinations of manual hints and it did NOT find any bar codes on the TIF file I provided.
Hi Terri,
You were using a single manual hint in the older code. Please check the following line in this code where two manual hints are used together to read the barcodes from your TIFF.
reader.ManualHints = ManualHint.ComplexBackground | ManualHint.MedianSmoothing;
Also, OrientationHints are used in this code to rotate the image.
Best Regards,