public class Detector
extends java.lang.Object
Encapsulates logic that can detect a QR Code in an image, even if the QR Code is rotated or skewed, or partially obscured.
限定符和类型 | 方法和说明 |
---|---|
DetectorResult |
detect()
Detects a QR Code in an image.
|
DetectorResult |
detect(java.util.Map<DecodeHintType,?> hints)
Detects a QR Code in an image.
|
public Detector(BitMatrix image)
public DetectorResult detect() throws NotFoundException, FormatException
Detects a QR Code in an image.
DetectorResult
encapsulating results of detecting a QR CodeNotFoundException
- if QR Code cannot be foundFormatException
- if a QR Code cannot be decodedpublic final DetectorResult detect(java.util.Map<DecodeHintType,?> hints) throws NotFoundException, FormatException
Detects a QR Code in an image.
hints
- optional hints to detectorDetectorResult
encapsulating results of detecting a QR CodeNotFoundException
- if QR Code cannot be foundFormatException
- if a QR Code cannot be decoded