public final class MultiFormatReader extends java.lang.Object implements Reader
构造器和说明 |
---|
MultiFormatReader() |
限定符和类型 | 方法和说明 |
---|---|
Result |
decode(BinaryBitmap image)
This version of decode honors the intent of Reader.decode(BinaryBitmap) in that it
passes null as a hint to the decoders.
|
Result |
decode(BinaryBitmap image,
java.util.Map<DecodeHintType,?> hints)
Decode an image using the hints provided.
|
Result |
decodeWithState(BinaryBitmap image)
Decode an image using the state set up by calling setHints() previously.
|
void |
reset()
Resets any internal state the implementation has after a decode, to prepare it
for reuse.
|
void |
setHints(java.util.Map<DecodeHintType,?> hints)
This method adds state to the MultiFormatReader.
|
public Result decode(BinaryBitmap image) throws NotFoundException
decode
在接口中 Reader
image
- The pixel data to decodeNotFoundException
- Any errors which occurredpublic Result decode(BinaryBitmap image, java.util.Map<DecodeHintType,?> hints) throws NotFoundException
decode
在接口中 Reader
image
- The pixel data to decodehints
- The hints to use, clearing the previous state.NotFoundException
- Any errors which occurredpublic Result decodeWithState(BinaryBitmap image) throws NotFoundException
image
- The pixel data to decodeNotFoundException
- Any errors which occurredpublic void setHints(java.util.Map<DecodeHintType,?> hints)
hints
- The set of hints to use for subsequent calls to decode(image)