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 | |
|---|---|---|---|---|
![]() |
inBarWidths | list[float] | Widths of the barcode bars (starting with width of the black bar) | |
![]() |
inBarcodeFormat | BarcodeFormat | None | BarcodeFormat.EAN13 | Format of the barcode |
![]() |
outDecodedText | str | None | Decoded barcode text or nothing if decoding failed | |
![]() |
outBarcodeFormat | BarcodeFormat | None | Decoded barcode format or nothing if decoding failed | |
![]() |
outPpm | float | None | ||
![]() |
outStart | int | None | ||
![]() |
outCount | int | None |


