WhiteRectangleDetector class

Detects a candidate barcode-like rectangular region within an image.

It starts around the center of the image, increases the size of the candidate region until it finds a white rectangular region. By keeping track of the last black points it encountered, it determines the corners of the barcode.

@author David Olivier

Constructors

WhiteRectangleDetector(BitMatrix _image, [int initSize = _initSize, int? x, int? y])
@param image barcode image to find a rectangle in @param initSize initial size of search area around center @param x x position of search center @param y y position of search center @throws NotFoundException if image is too small to accommodate initSize

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

centerEdges(ResultPoint y, ResultPoint z, ResultPoint x, ResultPoint t) List<ResultPoint>
recenters the points of a constant distance towards the center
containsBlackPoint(int a, int b, int fixed, bool horizontal) bool
Determines whether a segment contains a black point
detect() List<ResultPoint>
Detects a candidate barcode-like rectangular region within an image. It starts around the center of the image, increases the size of the candidate region until it finds a white rectangular region.
getBlackPointOnSegment(double aX, double aY, double bX, double bY) ResultPoint?
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