I was looking for Zxing integration with vuforia in Unity today.
The first thing to do is download the DLL from https://zxingnet.codeplex.com/ and copy the unity dll to your plugins folder (which should be in the Assets folder)
Then I managed to find some examples (some of these points are outdated):
After combining the examples of examples and simplifying them, I got something like this (which is placed in the prefab ARCamera):
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() {
I managed to get it to work in AVD (Android Virtual Device), so it will work on a real device.
source share