We recently acquired a temporary license to test the barcode recognition functionality against our documents.
The attached image was properly recognized on your live web demo found here:
http://www.aspose.com/demos/.net-components/aspose.barcode/csharp/barcode-reader/linear-2d-postal.aspx
as well as “Aspose.BarCode.Toolkit.exe” found in the 4.8 installer. However the provided DLLs in both downloads do not recognize the barcode. This is the download being used:
http://www.aspose.com/community/files/51/.net-components/aspose.barcode-for-.net/entry387224.aspx
The barcode in question is Interleaved2of5. The following code was used to test the image where “barcodetestscan.png” is the attached image.
using System; using Aspose.BarCode; using System.Drawing; using Aspose.BarCodeRecognition; namespace Recognition { class Class1 { [STAThread] static void Main(string[] args) { Aspose.BarCode.License lic = new Aspose.BarCode.License(); lic.SetLicense("Aspose.BarCode.lic"); Aspose.BarCodeRecognition.License lic2 = new Aspose.BarCodeRecognition.License(); lic2.SetLicense("Aspose.BarCode.lic"); // Create an Code39 image /*BarCodeBuilder bb = new BarCodeBuilder(); bb.SymbologyType = Symbology.Code39Extended; bb.CodeText = "1234567812345678"; bb.BarCodeImage.Save("test39.bmp");*/ //Read from this image BarCodeReader br = new BarCodeReader("barcodescantest.png", BarCodeReadType.Interleaved2of5); br.ExpectedBarCodeCount = 1; br.OrientationHints = RecognitionHints.Orientation.NoRotate; br.CustomizedScanStrength = 200; //Tips: You can use Or "|" operator to read mulitiple types of barcodes. //eg. BarCodeReader br = new BarCodeReader("test39.bmp", BarCodeReadType.Code39Extended | BarCodeReadType.Code128) while (br.Read()) { Console.Out.WriteLine("BarCode Found:" + br.GetCodeText()); } br.Close(); Console.Out.WriteLine("Done"); Console.ReadKey(false); } } }
Any idea why this might be happening? The DLLs used are the latest available on the download section (4.8).
Link to attached image for public viewing