public final class MonochromeRectangleDetector
extends java.lang.Object
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.
构造器和说明 |
---|
MonochromeRectangleDetector(BitMatrix image) |
限定符和类型 | 方法和说明 |
---|---|
ResultPoint[] |
detect()
Detects a rectangular region of black and white -- mostly black -- with a region of mostly
white, in an image.
|
public MonochromeRectangleDetector(BitMatrix image)
public ResultPoint[] detect() throws NotFoundException
Detects a rectangular region of black and white -- mostly black -- with a region of mostly white, in an image.
ResultPoint
[] describing the corners of the rectangular region. The first and
last points are opposed on the diagonal, as are the second and third. The first point will be
the topmost point and the last, the bottommost. The second point will be leftmost and the
third, the rightmostNotFoundException
- if no Data Matrix Code can be found