I am trying to read number underbarcode and it is not identifying… and if read barcode have to do some other programming to strip first few number to match what we have in system.
Capture16.JPG (31.2 KB)
Capture16 (1).JPG (35.6 KB)
I guess you meant code text for the barcode. Yes, you have to skip first few digits to get your required number but Aspose.BarCode will get complete code text and not the part of it. I tested using your first image with latest version of Aspose.BarCode for .NET v24.1 using the following sample code and it works fine. I can get complete code text and barcode type fine.
e.g.
Sample code:
var bmp1 = "g:\\test2\\Capture16.jpg";
using (Aspose.BarCode.BarCodeRecognition.BarCodeReader reader1 = new Aspose.BarCode.BarCodeRecognition.BarCodeReader(bmp1, Aspose.BarCode.BarCodeRecognition.DecodeType.GS1Code128))
{
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);
}
}
output:
Symbology Type: GS1Code128
CodeText: (420)08840(94)14836105442814616908
ok but is there anyway to read that number from that page directly?
Capture16 (1).JPG (35.6 KB)
look into attached image with highlighted number
GS1 General Specifications Page 198, 3.10.2 Company internal information: AIs (91 - 99)
GS1_General_Specifications.pdf (7.9 MB)
94 is Application Identifier which can be used by companies in free form. In this way you can search (91) - (99) Application Identifiers in any GS1 code and parse.
(94)14836105442814616908 = 9414_8361_0544_2814_6169_08