com.java4less.vision.aztec
Class AztecCodeReader

java.lang.Object
  |
  +--com.java4less.vision.aztec.AztecCodeReader

public class AztecCodeReader
extends java.lang.Object

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

    AztecData[] 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
AztecCodeReader()
           
 
Method Summary
 boolean isRemoveNoise()
           
 AztecData[] 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

AztecCodeReader

public AztecCodeReader()
Method Detail

read

public AztecData[] 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 -