TUPCEANReader.decodeDigit Method

Attempts to decode a single UPC/EAN-encoded digit.

Unit: ZXing.OneD.UPCEANReader
class function decodeDigit(const row: IBitArray; const counters: TArray<Integer>; const rowOffset: Integer; const patterns: TArray<TArray<Integer>>; var digit: Integer): Boolean

Parameters

row
Type: ZXing.Common.BitArray.IBitArray

row of black/white values to decode

counters
Type: TArray<Integer>

the counts of runs of observed black/white/black/... values

rowOffset
Type: System.Integer

horizontal offset to start decoding from

patterns
Type: TArray<TArray<Integer>>

the set of patterns to use to decode -- sometimes different encodings

digit
Type: System.Integer

Return Value

Type: System.Boolean

horizontal offset of first pixel beyond the decoded digit