In the attached image, ReadBarCodes() misses the horizontally oriented EAN-13 barcode near the upper right of the image in a QualitySettings.NormalQuality scan. Switching to HighQuality adds significant processing time. Anything that can be done to address this?
barcode_rasterized_alt.png.trimmed.png (620.1 KB)
@sferda,
I tested your scenario/case using your barcode image file and noticed it takes time to evaluate barcodes in HighQuality settings considering the fact about quality of EAN-13 barcode being poor on the image. Anyways, you may minimize the time cost and enhance the performance using the following sample code segment:
e.g.,
Sample code:
var bmp1 = "e:\\test2\\barcode_rasterized_alt.png.trimmed.png";
using (Aspose.BarCode.BarCodeRecognition.BarCodeReader reader1 = new Aspose.BarCode.BarCodeRecognition.BarCodeReader(bmp1, DecodeType.EAN13, DecodeType.Standard2of5, DecodeType.DeutschePostLeitcode, DecodeType.DataMatrix))
{
reader1.QualitySettings = Aspose.BarCode.BarCodeRecognition.QualitySettings.HighQuality;
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);
}
}