TUPCEANReader Class

Encapsulates functionality and implementation that is common to UPC and EAN families of one-dimensional barcodes.

Unit: ZXing.OneD.UPCEANReader
type TUPCEANReader = class(TOneDReader)

The TUPCEANReader type exposes the following members.

Show:
 NameDescription
G_PATTERNS

"Even", or "G" patterns used to encode UPC/EAN digits.

INTEGER_MATH_SHIFT
L_PATTERNS

MAX_AVG_VARIANCE

MAX_INDIVIDUAL_VARIANCE

MIDDLE_PATTERN

Pattern marking the middle of a UPC/EAN pattern, separating the two halves.

START_END_PATTERN

Start/end guard pattern.

Top
Show:
 NameDescription
Create

Initializes a new instance of the TUPCEANReader class.

Destroy

Top
Show:
 NameDescription
BarcodeFormat

Get the format of this decoder.

DecodeMiddle

Subclasses override this to decode the portion of a barcode between the start and end guard patterns.

DoDecodeRow

Like decodeRow(int, BitArray, java.util.Map), but allows caller to inform method about where the UPC/EAN start pattern is found. This allows this to be computed once and reused across many implementations.

RecordPatternInReverse

Records the pattern in reverse. (Inherited from ZXing.OneD.OneDReader.TOneDReader .)

checkChecksum

decode

Overloaded. Locates and decodes a barcode in some format within an image. This method also accepts hints, each possibly associated to some data, which may help the implementation decode. Note that we don't try rotation without the try harder flag, even if rotation was supported. (Inherited from ZXing.OneD.OneDReader.TOneDReader .)

decodeDigit

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

decodeEnd

Decodes the end.

decodeRow

Attempts to decode a one-dimensional barcode format given a single row of an image.

(Overrides ZXing.OneD.OneDReader.TOneDReader.decodeRow .)
findGuardPattern

Overloaded.

findStartGuardPattern

patternMatchVariance

Determines how closely a set of observed counts of runs of black/white values matches a given target pattern. This is reported as the ratio of the total variance from the expected pattern proportions across all pattern elements, to the length of the pattern. (Inherited from ZXing.OneD.OneDReader.TOneDReader .)

recordPattern

Records the size of successive runs of white and black pixels in a row, starting at a given point. The values are recorded in the given array, and the number of runs recorded is equal to the size of the array. If the row starts on a white pixel at the given start point, then the first count recorded is the run of white pixels starting from that point; likewise it is the count of a run of black pixels if the row begin on a black pixels at that point. (Inherited from ZXing.OneD.OneDReader.TOneDReader .)

reset

Resets any internal state the implementation has after a decode, to prepare it for reuse. (Inherited from ZXing.OneD.OneDReader.TOneDReader .)

Top