Click or drag to resize

BarcodeReaderReadBarcodesMultiThreaded Method (IEnumerableBitmap, BarcodeEncoding, Boolean, BarcodeReaderBarcodeRotationCorrection, BarcodeReaderBarcodeImageCorrection)

Reads barcodes from multiple images in parallel. Multiple threads will automatically be started and managed to improve performance for batch barcode reading tasks.

Features granular settings for developer control to balance performance against accuracy for their given use case.

Overloads of this method accept InputImage as string file paths as well as Image, Bitmap and Stream types.

Namespace:  IronBarCode
Assembly:  IronBarCode (in IronBarCode.dll) Version: 4.0.1.22591 (4.0.1.0)
Syntax
public static PagedBarcodeResult[] ReadBarcodesMultiThreaded(
	IEnumerable<Bitmap> InputImages,
	BarcodeEncoding BarcodeFormat = BarcodeEncoding.All,
	bool ExpectMultipleBarcodePerImage = false,
	BarcodeReaderBarcodeRotationCorrection RotationCorrection = BarcodeReaderBarcodeRotationCorrection.Low,
	BarcodeReaderBarcodeImageCorrection ImageCorrection = BarcodeReaderBarcodeImageCorrection.None
)

Parameters

InputImages
Type: System.Collections.GenericIEnumerableBitmap
The input images as an IEnumerable of Bitmap. Jpeg, Jpeg2000, Png, Bmp, TiIf & Gif Image formats are supported.
BarcodeFormat (Optional)
Type: IronBarCodeBarcodeEncoding
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.
ExpectMultipleBarcodePerImage (Optional)
Type: SystemBoolean
If set to false the barcode reader will stop scanning a given image once a barcode has been found to increase performance.
RotationCorrection (Optional)
Type: IronBarCodeBarcodeReaderBarcodeRotationCorrection
Setting to allow the barcode reader to detect and accurately read barcodes which are rotated or skewed with perspective using a Hough Transform. Default tolerance is 10 Degrees of rotation; higher levels use more CPU.
ImageCorrection (Optional)
Type: IronBarCodeBarcodeReaderBarcodeImageCorrection
Setting which can clean noisy input images by allowing barcodes to be distinguished from the rest of the image. CPU Intensive.

Return Value

Type: PagedBarcodeResult
An Array of PagedBarcodeResult. Array length will be zero if no barcodes were found.
See Also