Class BarcodeScanMode
Define how IronBarcode scans and detects barcodes in an image to read.
Inheritance
Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public sealed class BarcodeScanMode : Enum
BarcodeScanMode selects how IronBarcode locates barcodes in an image, assigned to BarcodeReaderOptions.ScanMode. Auto, the default, applies the most effective reader configuration automatically and suits most photos and scans. MachineLearningScan runs the machine-learning detection model to find codes in difficult images, and OnlyDetectionModel returns only the detected positions. OnlyBasicScan skips machine learning and pre-processing for fast reads of clean, straight-on images. The barcode reading how-to covers preprocessing options.
var options = new BarcodeReaderOptions { ScanMode = BarcodeScanMode.Auto };Fields
Auto
Reads barcodes with most optimal reader configurations automatically applied.
Recommended for the best results and performance.
Declaration
public const BarcodeScanMode Auto
Field Value
| Type | Description |
|---|---|
| BarcodeScanMode |
MachineLearningScan
Scan image for barcodes with machine learning detection and read them.
Declaration
public const BarcodeScanMode MachineLearningScan
Field Value
| Type | Description |
|---|---|
| BarcodeScanMode |
OnlyBasicScan
Read barcodes without machine learning detection or automatic image pre-processing and reader option configuration.
This option can be used with IronBarCode.Slim alone.
Declaration
public const BarcodeScanMode OnlyBasicScan
Field Value
| Type | Description |
|---|---|
| BarcodeScanMode |
OnlyDetectionModel
Scan image for barcodes and return their positions as an array of IronSoftware.Drawing.PointF.
This mode does not read the detected barcodes, it only returns the positions of each barcode.
Declaration
public const BarcodeScanMode OnlyDetectionModel
Field Value
| Type | Description |
|---|---|
| BarcodeScanMode |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |