title: Reading QR-code from webcam
body: <p>I am trying to read a QR-code from a piece of paper using a webcam but it keeps failing - it won't print. I have been stuck with this problem for several days now.</p>
  
  <p>Here is my code:</p>
  
  <p>public void imageUpdated(Image image)
      {</p>
  
  <pre><code>    LuminanceSource ls = new BufferedImageLuminanceSource((BufferedImage)image);
      BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(ls));
      QRCodeReader qrReader = new QRCodeReader(); 
      try {
          Result result = qrReader.decode(bitmap);
          System.out.println("QR Code data is: "+result.getText());
      } catch (NotFoundException e) {
          // TODO Auto-generated catch block
          System.out.println("--------");
      } catch (ChecksumException e) {
          // TODO Auto-generated catch block
          System.out.println("--------");
      } catch (FormatException e) {
          // TODO Auto-generated catch block
          System.out.println("--------");
      }
      qrReader.reset();
  }
  </code></pre>
  
  <p>Does this code seem odd to anyone of you? Any help is appreciated, thank you :)</p>