The above C# code will get all UPC-E barcodes in image file "upce-barcode.gif".
Scan & Read UPC-E Barcodes in VB.NET
Scan and read UPC-E barcode in VB.NET is an easy and simple task. One line of vb.net code finishes the job.
Dim datas() AsString = BarcodeReader.read("c:/upce-barcode.gif", BarcodeReader.UPCE)
The above VB.NET code will get all UPC-E barcodes in image file "upce-barcode.gif".
Optimize UPC-E Barcode Reading Performance in C#.NET & VB.NET
You can customize our .NET barcode reader component, to improve UPC-E barcode reading speed, when you are scanning large image size (like 4mb per image).
Set maxOneBarcodePerPage to true, if there is maximum one barcode per image or per page in tiff or pdf document. If maxOneBarcodePerPage is true, the .net barcode reader library will stop scanning the barcode immediately, once detects one barcode. If maxOneBarcodePerPage is false (default value), the library will use total 5 algorithms and each will scan the whole image from 4 directions.
Scan the partial image instead of the whole file. If the barcode is always located one specified area in the image, you can set and let the library scan that area only. And it will reduce lots of scanning time, CPU and memory usage. You just specify the left top point and right bottom point of the area (the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%)).
The following C# code explains how to scan top 20% of the image and bottom 20% of the image.
OptimizeSetting setting = new OptimizeSetting();
ScanArea top20 = new ScanArea(new PointF(0.0F, 0.0F), new PointF(100.0F, 20.0F));
ScanArea bottom20 = new ScanArea(new PointF(0.0F, 80.0F), new PointF(100.0F, 100.0F));
List<ScanArea> areas = new List<ScanArea>(); areas.Add(top20); areas.Add(bottom20);