OneDReader class abstract

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

@author dswitkin@google.com (Daniel Switkin) @author Sean Owen

Implemented types
Implementers

Constructors

OneDReader()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(BinaryBitmap image, [Map<DecodeHintType, Object>? hints]) Result
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.
override
decodeRow(int rowNumber, BitArray row, Map<DecodeHintType, Object>? hints) Result
Attempts to decode a one-dimensional barcode format given a single row of an image.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets any internal state the implementation has after a decode, to prepare it for reuse.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

patternMatchVariance(List<int> counters, List<int> pattern, double maxIndividualVariance) double
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.
recordPattern(BitArray row, int start, List<int> counters) → void
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.
recordPatternInReverse(BitArray row, int start, List<int> counters) → void