Run ASP.NET UPC-A Barcode Decoder Using VB.NET Class Library
Sample VB.NET code is listed here to help users decode & scan all UPC-A barcodes from an image source (For example: a gif image file called "upca-aspnet").
Dim datas() AsString = BarcodeReader.read("c:/upca-aspnet.gif", BarcodeReader.UPCA)
Enhance UPC-A Barcode Recognition Rate in ASP.NET Website
ASP.NET UPC-A Barcode Reader from BarcodeLib.com owns the capacity to speed up decoding rate in two situations.
Situation 1: Read a maximum UPC-A barcode from an image file: Common UPC-A barcode readers will use total 5 algorithms and scan the whole image from 4 directions. It is time-consuming. But our barcode reader provide a function called "maxOneBarcodePerPage".
If user sets "maxOneBarcodePerPage" to true, the reader will stop reading after it detects one UPC-A barcode.
Situation 2: Read an UPC-A barcode from a large-size image source: In the practical applications, an UPC-A barcode is sometimes located in a certain part of a large-size image file. But in general, the reader will scan the whole image to decode an UPC-A barcode. Thus, most recognition time is used to scan the non-barcode region.
So why not direct the reader to only scan the barcode region? To meet this goal, our UPC-A barcode reader offers users the possibility to locate the barcode region. And detailed C# & VB.NET codes are listed below:
For C#.NET UPC-A barcode reading program:
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);