You are here: Start » AVL.NET » Function Reference » Computer Vision » Barcodes » AVL.DecodeBarcode

AVL.DecodeBarcode

Translates an array of bar widths to sequence of digits or text in accordance to the selected barcode standard.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void DecodeBarcode
(
	IList<float> inBarWidths,
	AvlNet.BarcodeFormat? inBarcodeFormat,
	INullable<string> outDecodedText,
	out AvlNet.BarcodeFormat? outBarcodeFormat
)

Parameters

Name Type Range Default Description
inBarWidthsSystem.Collections.Generic.IList<float>Widths of the barcode bars (starting with width of the black bar).
inBarcodeFormatAvlNet.BarcodeFormat?EAN13Format of the barcode. Default value: EAN13.
outDecodedTextAvlNet.INullable<string>Decoded barcode text or nothing if decoding failed. This parameter cannot be null.
outBarcodeFormatAvlNet.BarcodeFormat?Decoded barcode format or nothing if decoding failed.

Description

This filter is especially useful when a barcode is not provided in a standard black and white printed form.

Use this filter to decode a barcode printed or engraved on circular or distorted surfaces. Also the filter can be used to decode a barcode when one of colors is transparent due to printing on glass or other transparent surface.

It can be useful in decoding damaged codes in which barcode position detection is very complex.

Use the ScanMultipleStripes filter to get the bar widths.

Remarks

Minimal bar width requirement

To provide precise detection of the barcode width of the thinnest bar should be at least 1.5 pixels.

Depending on the barcode format guard or start/end code patterns must be readable.

Using a relative coordinate systems

Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.

Function Overrides

See also