DecodeBarcode


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

Applications:Decoding of barcodes whose bars have been measured in a non-standard way.

Syntax

C++
C#
Python
 
def DecodeBarcode(
	inBarWidths: list[float],
	/,
	*,
	inBarcodeFormat: BarcodeFormat | None = BarcodeFormat.EAN13
)
-> (
	outDecodedText: str | None,
	outBarcodeFormat: BarcodeFormat | None,
	outPpm: float | None,
	outStart: int | None,
	outCount: int | None
)

Parameters

Name Type Default Description
Input value inBarWidths list[float] Widths of the barcode bars (starting with width of the black bar)
Input value inBarcodeFormat BarcodeFormat | None BarcodeFormat.EAN13 Format of the barcode
Output value outDecodedText str | None Decoded barcode text or nothing if decoding failed
Output value outBarcodeFormat BarcodeFormat | None Decoded barcode format or nothing if decoding failed
Output value outPpm float | None
Output value outStart int | None
Output value outCount int | None