Adjust Codabar Barcode Reading Rate Using C# Class Code
In the following two cases, you are recommended to adjust the Codabar barcode scanning rate in your C# project.
Case 1: Read & scan maximum Codabar in C#.NET class project
If there is a large-size Codabar barcode in the source image file, you can set "maxOneBarcodePerPage" to true. Then this C#.NET barcode reader library will not use total 5 algorithms from 4 directions. Instead, it will stop scanning once it detects one Codabar barcode.
Case 2: Decode Codabar from scanning defined area of source image using C#
If the source image file is a large-size image and the Codabar barcode is only in the top 20% and bottom 20% area of it, then you can define the Codabar scanning area using following C# code.
OptimizeSetting setting = new OptimizeSetting();
setting.setMaxOneBarcodePerPage(true);
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);