title: QR Code Scanner in Unity?
body: <p>I am trying to get QRCode reader in unity that works on ios and Android.</p>
  
  <p><a href="https://stackoverflow.com/questions/30546548/unity-zxing-qr-code-scanner-integration/30571186#30571186">Unity Zxing QR code scanner integration</a></p>
  
  <p>Using above answer I Have added Vuforia (Working perfectly alone). then i also have added Zxing.unity.dll in plugins folder, then added this script to ARCamera in a scene.</p>
  
  <pre><code>using UnityEngine;
  using System;
  using System.Collections;
  
  using Vuforia;
  
  using System.Threading;
  
  using ZXing;
  using ZXing.QrCode;
  using ZXing.Common;
  
  
  [AddComponentMenu("System/VuforiaScanner")]
  public class VuforiaScanner : MonoBehaviour
  {    
  private bool cameraInitialized;
  
  private BarcodeReader barCodeReader;
  
  void Start()
  {        
      barCodeReader = new BarcodeReader();
      StartCoroutine(InitializeCamera());
  }
  
  private IEnumerator InitializeCamera()
  {
      // Waiting a little seem to avoid the Vuforia's crashes.
      yield return new WaitForSeconds(1.25f);
  
      var isFrameFormatSet = CameraDevice.Instance.SetFrameFormat(Image.PIXEL_FORMAT.RGB888, true);
      Debug.Log(String.Format("FormatSet : {0}", isFrameFormatSet));
  
      // Force autofocus.
      var isAutoFocus = CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_CONTINUOUSAUTO);
      if (!isAutoFocus)
      {
          CameraDevice.Instance.SetFocusMode(CameraDevice.FocusMode.FOCUS_MODE_NORMAL);
      }
      Debug.Log(String.Format("AutoFocus : {0}", isAutoFocus));
      cameraInitialized = true;
  }
  
  private void Update()
  {
      if (cameraInitialized)
      {
          try
          {
              var cameraFeed = CameraDevice.Instance.GetCameraImage(Image.PIXEL_FORMAT.RGB888);
              if (cameraFeed == null)
              {
                  return;
              }
              var data = barCodeReader.Decode(cameraFeed.Pixels, cameraFeed.BufferWidth, cameraFeed.BufferHeight, RGBLuminanceSource.BitmapFormat.RGB24);
              if (data != null)
              {
                  // QRCode detected.
                  Debug.Log(data.Text);
              }
              else
              {
                  Debug.Log("No QR code detected !");
              }
          }
          catch (Exception e)
          {
              Debug.LogError(e.Message);
          }
      }
  }    
  }
  </code></pre>
  
  <p>But it is still not detecting any QRCode. Is there any other way to do QRcode reading and writing except Zxing? or any working sample project you have?</p>