Class BarcodeReaderOptions
An Options class of BarcodeReader for reading many popular barcode formats from Images and PDFs.
Features: MaxParallelThreads, Reading detail, ExpectMultipleBarcodes, Crop-area, Image filters and preprocessing for improved accuracy.Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public class BarcodeReaderOptions : Object
Constructors
BarcodeReaderOptions()
Initializes a new instance of the BarcodeReader class.
Declaration
public BarcodeReaderOptions()
Properties
AutoRotate
Toggle whether to automatically rotate barcodes or not in an ML detection. Default: true
Declaration
public bool AutoRotate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ConfidenceThreshold
Minimum confidence level for ML model detection to be considered valid. The value is between (0.0, 1.0). Default value is 0.7
Declaration
public double ConfidenceThreshold { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
CropArea
The area of each image frame in which to scan for barcodes. A IronSoftware.Drawing.Rectangle measured in pixels.
Declaration
public Rectangle CropArea { get; set; }
Property Value
Type | Description |
---|---|
IronSoftware.Drawing.Rectangle |
ExpectBarcodeTypes
The barcode encoding types to read from the InputImage. By default all supported barcodes types are scanned for. Choosing one or more specific Barcode formats will improve performance significantly.
Declaration
public BarcodeEncoding ExpectBarcodeTypes { get; set; }
Property Value
Type | Description |
---|---|
BarcodeEncoding |
ExpectMultipleBarcodes
If set to false
the barcode reader will stop scanning a given image once a barcode has been found to increase performance. Default true
Declaration
public bool ExpectMultipleBarcodes { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ImageFilters
A collection of image filter for processing Image. If a Code39 barcode is detected. Try to use extended mode for the full ASCII Character Set
Declaration
public ImageFilterCollection ImageFilters { get; set; }
Property Value
Type | Description |
---|---|
ImageFilterCollection |
MaxParallelThreads
Max Threads for parallel. Default 4
Declaration
public int MaxParallelThreads { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Multithreaded
Reads barcodes from multiple images in parallel. Multiple threads will automatically be started and managed to improve performance for batch barcode reading tasks.
Declaration
public bool Multithreaded { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
RemoveFalsePositive
Attempt to remove false positive barcode reads. This can be disabled to improve performance at the cost of accuracy. Default = True
Declaration
public bool RemoveFalsePositive { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ScanMode
Define how IronBarcode scans and detects barcodes in an image to read. By default, a ML model will scan the image, and a basic second scan will be run if the ML model finds none.
Declaration
public BarcodeScanMode ScanMode { get; set; }
Property Value
Type | Description |
---|---|
BarcodeScanMode |
Speed
Barcode reading speed. Default Balanced
Declaration
public ReadingSpeed Speed { get; set; }
Property Value
Type | Description |
---|---|
ReadingSpeed |
UseCode39ExtendedMode
If a Code39 barcode is detected. Try to use extended mode for the full ASCII Character Set
Declaration
public bool UseCode39ExtendedMode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |