jp.sourceforge.qrcode.exception.DecodingFailedException: Give up decoding
這是QRCodeDecoder類中的decode源碼,求大神幫忙,這個(gè)是什么問(wèn)題
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"); ? ?
2018-03-06
貌似是沒(méi)有讀取到數(shù)據(jù)