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.
  • ExpectMultipleBarcodes: By setting this to false, the reader will stop after finding the first barcode, improving performance when only one barcode is expected.
  • ExpectBarcodeTypes: Specifies which BarcodeEncoding types to scan for, simplifying the process when you have varied barcode formats.
  • CropArea: Allows focusing on a specific area of the image, which can significantly improve reading times and accuracy when the barcode position is approximately known.
  • MaxParallelThreads: Specifies the maximum number of threads to be used in parallel, enhancing performance on systems with multiple CPU cores.
  • MinScanLines: Sets the minimum number of scan lines that must agree on a barcode result for it to be considered valid. The default is 2. Lowering it to 1 increases sensitivity for thin or low-quality barcodes, while increasing it reduces false positives.

This configuration offers a balance between resource use, speed, and accuracy, tailored to your specific barcode reading needs.

Learn to Read Barcodes from Images with IronBarcode

Ready to Get Started?
Nuget Downloads 2,317,736 | Version: 2026.7 just released
Still Scrolling Icon

Still Scrolling?

Want proof fast? PM > Install-Package BarCode
run a sample watch your string become a barcode.