end guard pattern.
As above but also including the "even", or "G" patterns used to encode UPC/EAN digits.
"Odd", or "L" patterns used to encode UPC/EAN digits.
The pattern that marks the middle, and end, of a UPC-E pattern. There is no "second half" to a UPC-E barcode.
Pattern marking the middle of a UPC/EAN pattern, separating the two halves.
See {@link #L_AND_G_PATTERNS}; these values similarly represent patterns of even-odd parity encodings of digits that imply both the number system (0 or 1) used, and the check digit.
Start/end guard pattern.
Expands a UPC-E value back into its full, equivalent UPC-A code value.
UPC-E code as string of digits
equivalent UPC-A code as string of digits
row of black/white values to search
position to start search
if true, indicates that the pattern specifies white/black/white/... pixel counts, otherwise, it is interpreted as black/white/black/...
pattern of counts of number of black and white pixels that are being searched for as a pattern
array of counters, as long as pattern, to re-use
start/end horizontal offset of guard pattern, as an array of two ints
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.
observed counters
expected pattern
The most any counter can differ before we give up
ratio of total variance between counters and pattern compared to total pattern size
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.
row to count from
offset into row to start at
array into which to record counts
Generated using TypeDoc
Implements decoding of the UPC-E format.
This is a great reference for UPC-E information.
Sean Owen
https://github.com/zxing/zxing/blob/3c96923276dd5785d58eb970b6ba3f80d36a9505/core/src/main/java/com/google/zxing/oned/UPCEReader.java