com.google.zxing.common.detector
Class WhiteRectangleDetector

java.lang.Object
  extended by com.google.zxing.common.detector.WhiteRectangleDetector

public final class WhiteRectangleDetector
extends Object

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.

Since:
BlackBerry API 7.0.0

Constructor Summary
WhiteRectangleDetector(BitMatrix image)
           
 
Method Summary
 ResultPoint[] detect()
           Detects a candidate barcode-like rectangular region within an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

WhiteRectangleDetector

public WhiteRectangleDetector(BitMatrix image)
Since:
BlackBerry API 7.0.0


Method Detail

detect

public ResultPoint[] detect()
                     throws NotFoundException

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.

Returns:
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 rightmost
Throws:
NotFoundException - if no Data Matrix Code can be found
Since:
BlackBerry API 7.0.0





Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal