|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.vision.qrcode.QRCodeReader
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 |
public int minModuleSize
public int maxModuleSize
public boolean applyContrast
public boolean isBWImage
Constructor Detail |
public QRCodeReader()
Method Detail |
public QRCodeData[] read(RImage inputImage) throws VisionException
inputImage
- image to be scanned
VisionException
public boolean isRemoveNoise()
public void setRemoveNoise(boolean removeNoise)
removeNoise
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |