row number from top of the row
the black/white pixel data of the row
decode hints
Result containing encoded string and start/end of barcode
values to sum
sum of values
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
Attempts to decode a one-dimensional barcode format given a single row of an image.
NotFoundException if no potential barcode is found
ChecksumException if a potential barcode is found but does not pass its checksum
FormatException if a potential barcode is found but format is invalid