title: ZXing on Android - Decode performance extremely slow
body: <p>As the title suggests, I am trying to decode QR codes on an Android device using ZXing's Barcode Scanner app. I have read multiple threads on the internet about how it is discouraged to integrate the app within one's own project. Instead, one should use <code>IntentIntegrator</code>.</p>
  
  <p>However, this is not an option in my case. Below is a snippet of code which I am calling for every camera frame.</p>
  
  <pre><code>LuminanceSource source = new RGBLuminanceSource(bitmap);
  BinaryBitmap bm = new BinaryBitmap(new HybridBinarizer(source));
  
  try {
      Result result = reader.decode(bm); // This line takes approx. 6seconds
      if (!result.getText().isEmpty()) {
          Log.e("MYTAG", "Found something: "+result.getText());
      }
  }
  catch (NotFoundException e) {
      e.printStackTrace();
  } catch (ChecksumException e) {
      e.printStackTrace();
  } catch (FormatException e) {
      e.printStackTrace();
  }
  </code></pre>
  
  <p>As I said, this process is extremely slow. Decoding takes anywhere between 5 to 8 seconds.</p>
  
  <p>I have tried using both the <code>MultiFormatReader</code> and the <code>QRCodeReader</code>.</p>
  
  <p>Can anyone shed some light on the subject?</p>