com.java4less.vision.datamatrix
Class DatamatrixReader
java.lang.Object
|
+--com.java4less.vision.datamatrix.DatamatrixReader
- public class DatamatrixReader
- extends java.lang.Object
Class for scanning images and reading barcodes.
Example of use:
// load image to scan in a BufferedImage object
BufferedImage myImage=....;
DatamatrixReader reader=new DatamatrixReader();
DatamatrixData[] barcodes=reader.read(new RImage(myImage));
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatamatrixReader
public DatamatrixReader()
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
read
public DatamatrixData[] read(RImage cimage)
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
-