Use Mature EAN-13 Reading API
To better meet customer's needs, we developed two types of APIs for .NET EAN-13 barcode reading and decoding. You see the following two situations. Please note that your image file can be loaded as bitmap, string or stream in .NET class programming.
Situation 1: Only Need to Recognize EAN-13 in .NET
In Visual Studio .NET project, you know the barcode on your image is EAN-13 symbol and you only need to read this bar code type. Then, use the following three APIs. And the return value will include encoded barcode data, as well as barcode type information. In this way, you can save the time of .NET barcode reading because our .NET barcode decoder DLL will be controlled to read EAN-13 barcode(s) only, instead of scanning the whole image source.
public static BarcodeResult Scan(Bitmap bitmap, BarCodeType barType);
public static BarcodeResult Scan(Stream stream, BarCodeType barType);
public static BarcodeResult Scan(strng filename, BarCodeType barType);
Situation 2: Need to Recognize All Barcodes in .NET (EAN-13 Included)
This is suitable if you are involved in a .NET barcode scanning program and have the need of reading all barcodes including EAN-13 font from your images. By implementing following APIs, the whole image source will be scanned and all barcodes on it will be detected and recognized. Within seconds, all barcodes information including encoded data (digits) and barcode types will be returned.
public static BarcodeResult Scan(Bitmap bitmap);
public static BarcodeResult Scan(Stream stream);
public static BarcodeResult Scan(string filename);
Situation 3: Only Have One EAN-13 Barcode on Image
To improve EAN-13 barcode recognition accuracy, we provide the APIs for one barcode recognition. It is suitable when there's only one EAN-13 barcode on your image.
public static BarcodeResult ScanSingle(Bitmap bitmap);
public static BarcodeResult ScanSingle(Stream stream);
public static BarcodeResult ScanSingle(string filename);
EAN-13 is a superset of UPC-A (the original 12-digit Universal Product Code (UPC) system developed in the United States). And UPC-A barcode reading in .NET application is also similar to .NET EAN-13 reading. You may click to see details.
You can also go to Read EAN-13 Using C# & VB.NET Demos, Read Barcode in C# Programming and Read Barcode in VB.NET Programming.