jp.sourceforge.qrcode.exception.DecodingFailedException: Give up decoding
这是QRCodeDecoder类中的decode源码,求大神帮忙,这个是什么问题
public byte[] decode(QRCodeImage qrCodeImage) throws DecodingFailedException {
Point[] adjusts = getAdjustPoints();
Vector results = new Vector();
numTryDecode = 0;
while (numTryDecode < adjusts.length) {
try {
DecodeResult result = decode(qrCodeImage, adjusts[numTryDecode]);
if (result.isCorrectionSucceeded()) {
return result.getDecodedBytes();
}
else {
results.addElement(result);
}
} catch (DecodingFailedException dfe) {
if (dfe.getMessage().indexOf("Finder Pattern") >= 0)
throw dfe;
} finally {
numTryDecode += 1;
}
}
if (results.size() == 0)
throw new DecodingFailedException("Give up decoding");