com.google.zxing.qrcode.detector
Class Detector

java.lang.Object
  extended by com.google.zxing.qrcode.detector.Detector
Direct Known Subclasses:
MultiDetector

public class Detector
extends Object

Encapsulates logic that can detect a QR Code in an image, even if the QR Code is rotated or skewed, or partially obscured.

Since:
BlackBerry API 6.0.0

Constructor Summary
Detector(BitMatrix image)
           
 
Method Summary
 DetectorResult detect()
          Detects a QR Code in an image, simply.
 DetectorResult detect(Hashtable hints)
          Detects a QR Code in an image, simply.
protected  BitMatrix getImage()
           
protected  DetectorResult processFinderPatternInfo(FinderPatternInfo info)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Constructor Detail

Detector

public Detector(BitMatrix image)
Since:
BlackBerry API 6.0.0


Method Detail

getImage

protected BitMatrix getImage()
Since:
BlackBerry API 6.0.0

detect

public DetectorResult detect()
                      throws ReaderException

Detects a QR Code in an image, simply.

Returns:
DetectorResult encapsulating results of detecting a QR Code
Throws:
ReaderException - if no QR Code can be found
Since:
BlackBerry API 6.0.0

detect

public DetectorResult detect(Hashtable hints)
                      throws ReaderException

Detects a QR Code in an image, simply.

Parameters:
hints - optional hints to detector
Returns:
DetectorResult encapsulating results of detecting a QR Code
Throws:
ReaderException - if no QR Code can be found
Since:
BlackBerry API 6.0.0

processFinderPatternInfo

protected DetectorResult processFinderPatternInfo(FinderPatternInfo info)
                                           throws ReaderException
Throws:
ReaderException
Since:
BlackBerry API 6.0.0





Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.