Status: New
Owner: ----
New issue 1490 by
dmitry.m...@mind.com: Java core and javaSE - can't decode
certain simple QR codes made by zxing itself
http://code.google.com/p/zxing/issues/detail?id=1490
public static void main(String[] args) throws WriterException,
NotFoundException
{
MultiFormatWriter writer = new MultiFormatWriter();
MultiFormatReader reader = new MultiFormatReader();
BufferedImage image =
MatrixToImageWriter.toBufferedImage(writer.encode("95",
BarcodeFormat.QR_CODE, 320, 240));
LuminanceSource source = new BufferedImageLuminanceSource(image);
BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source));
System.out.println(reader.decode(bitmap).getText());
}