// We look for a new AI. If it doesn't exist (ERROR), we coninue
// with the iteration
if ("ERROR".equals(findAIvalue(index, rawTextAux))) {
- buf.append(c);
+ buf.append('(');
} else {
break;
}
*\r
* @param bits booleans representing white/black QR Code modules\r
* @return text and bytes encoded within the QR Code\r
- * @throws NotFoundException if the QR Code cannot be found\r
* @throws FormatException if the QR Code cannot be decoded\r
* @throws ChecksumException if error correction fails\r
*/\r
- public DecoderResult decode(BitMatrix bits, Hashtable hints)\r
- throws NotFoundException, FormatException, ChecksumException {\r
+ public DecoderResult decode(BitMatrix bits, Hashtable hints) throws FormatException, ChecksumException {\r
\r
// Construct a parser and read version, error-correction level\r
BitMatrixParser parser = new BitMatrixParser(bits);\r
sourceBottomRightX = sourceBottomRightY = dimMinusThree;
}
- PerspectiveTransform transform = PerspectiveTransform.quadrilateralToQuadrilateral(
+ return PerspectiveTransform.quadrilateralToQuadrilateral(
3.5f,
3.5f,
dimMinusThree,
bottomRightY,
bottomLeft.getX(),
bottomLeft.getY());
-
- return transform;
}
private static BitMatrix sampleGrid(BitMatrix image,
import com.google.zxing.WriterException;
import com.google.zxing.common.BitArray;
import com.google.zxing.common.CharacterSetECI;
+import com.google.zxing.common.ECI;
import com.google.zxing.common.reedsolomon.GF256;
import com.google.zxing.common.reedsolomon.ReedSolomonEncoder;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
}
}
- private static void appendECI(CharacterSetECI eci, BitArray bits) {
+ private static void appendECI(ECI eci, BitArray bits) {
bits.appendBits(Mode.ECI.getBits(), 4);
// This is correct for values up to 127, which is all we need now.
bits.appendBits(eci.getValue(), 8);