com.java4less.vision.qrcode
Class QRCodeReader

java.lang.Object
  |
  +--com.java4less.vision.qrcode.QRCodeReader

public class QRCodeReader
extends java.lang.Object

 Main class for reading QRCode barcodes. Example of use:
 
    // im is a BufferedImage object that contains the image to be scanned	
    RImage rim=new RImage((BufferedImage) im);

    QRCodeData[] barcodes=reader.read(rim); 
     		
         
 


Field Summary
 boolean applyContrast
          set this property to true if the barcode in the image is not dark enough
 boolean isBWImage
          is a black and white image?
 int maxModuleSize
          use this proerty to optimize search, this is the maximum module size
 int minModuleSize
          use this property to optimize search, this is the minimum module size
 
Constructor Summary
QRCodeReader()
           
 
Method Summary
 boolean isRemoveNoise()
           
 QRCodeData[] read(RImage inputImage)
          Entry point for reading barcodes
 void setRemoveNoise(boolean removeNoise)
          if true, all standalone white pixels surrounded by 8 black ones, will be converted to white
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minModuleSize

public int minModuleSize
use this property to optimize search, this is the minimum module size


maxModuleSize

public int maxModuleSize
use this proerty to optimize search, this is the maximum module size


applyContrast

public boolean applyContrast
set this property to true if the barcode in the image is not dark enough


isBWImage

public boolean isBWImage
is a black and white image?

Constructor Detail

QRCodeReader

public QRCodeReader()
Method Detail

read

public QRCodeData[] read(RImage inputImage)
                  throws VisionException
Entry point for reading barcodes

Parameters:
inputImage - image to be scanned
Returns:
found barcodes
Throws:
VisionException

isRemoveNoise

public boolean isRemoveNoise()

setRemoveNoise

public void setRemoveNoise(boolean removeNoise)
if true, all standalone white pixels surrounded by 8 black ones, will be converted to white

Parameters:
removeNoise -