|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.zxing.datamatrix.DataMatrixReader
public final class DataMatrixReader
This implementation can detect and decode Data Matrix codes in an image.
Constructor Summary | ||
---|---|---|
DataMatrixReader()
|
Method Summary | ||
---|---|---|
Result |
decode(BinaryBitmap image)
Locates and decodes a Data Matrix code in an image. |
|
Result |
decode(BinaryBitmap image,
Hashtable hints)
Locates and decodes a barcode in some format within an image. |
|
static BitMatrix |
extractPureBits(BitMatrix image)
This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataMatrixReader()
Method Detail |
---|
public Result decode(BinaryBitmap image) throws NotFoundException, ChecksumException, FormatException
decode
in interface Reader
image
- image of barcode to decode
NotFoundException
- if a Data Matrix code cannot be found
FormatException
- if a Data Matrix code cannot be decoded
ChecksumException
- if error correction failspublic Result decode(BinaryBitmap image, Hashtable hints) throws NotFoundException, ChecksumException, FormatException
Reader
decode
in interface Reader
image
- image of barcode to decodehints
- passed as a Hashtable
from DecodeHintType
to arbitrary data. The
meaning of the data depends upon the hint type. The implementation may or may not do
anything with these hints.
NotFoundException
- if the barcode cannot be located or decoded for any reason
ChecksumException
FormatException
public static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException
NotFoundException
PDF417Reader.extractPureBits(BitMatrix)
,
QRCodeReader.extractPureBits(BitMatrix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal