MonochromeRectangleDetector class

A somewhat generic detector that looks for a barcode-like rectangular region within an image.

It looks within a mostly white region of an image for a region of black and white, but mostly black. It returns the four corners of the region, as best it can determine.

@author Sean Owen @deprecated without replacement since 3.3.0

Annotations

Constructors

MonochromeRectangleDetector(BitMatrix _image)

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

blackWhiteRange(int fixedDimension, int maxWhiteRun, int minDim, int maxDim, bool horizontal) → List<int>?
Computes the start and end of a region of pixels, either horizontally or vertically, that could be part of a Data Matrix barcode.
detect() → List<ResultPoint>
Detects a rectangular region of black and white -- mostly black -- with a region of mostly white, in an image.
findCornerFromCenter(int centerX, int deltaX, int left, int right, int centerY, int deltaY, int top, int bottom, int maxWhiteRun) → ResultPoint
Attempts to locate a corner of the barcode by scanning up, down, left or right from a center point which should be within the barcode.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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