Set Barcode Reader Options
IronBarcode offers a range of settings within the BarcodeReaderOptions
class to enable tailored and optimized barcode reading. These options allow you to trade-off resources for accuracy, control the reading scope, and optimize reading strategies.
Available BarcodeReaderOptions
Types
BarcodeReaderOptions
: This class provides options to customize the reading of barcodes, making the process more efficient and accurate based on specific needs.TotalBarcodes
: By setting this to1
, the reader will stop after finding the first barcode, improving performance when only one barcode is expected.TreatAllDecodersAs
: Automatically detects the type of barcode, simplifying the process when you have varied barcode formats.CropRegion
: Allows focusing on a specific area of the image, which can significantly improve reading times and accuracy when the barcode position is approximately known.MaxThreads
: Specifies the maximum number of threads to be used in parallel, enhancing performance on systems with multiple CPU cores.
This configuration offers a balance between resource use, speed, and accuracy, tailored to your specific barcode reading needs.
Discover How to Efficiently Read Barcodes from Images with IronBarcode in C#