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.
Pattern marking the middle of a UPC/EAN pattern, separating the two halves.
Start/end guard pattern.
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 EAN-8 format.
Sean Owen