Hi,
I want to use the ZXing libarys to detected Qr codes from a mobile camera. The problem is, that I cant get ZXing to accept the WebCamTexture. My current setup gives me an Array out of bounds exception at CalculateLuminanceRGB24. Does anybody previously worked with ZXing and can show me how to set this up?
Any Help will be appreciated.
IntPtr pointer = webCamTex.GetNativeTexturePtr();
texture2d.UpdateExternalTexture(pointer);
Result result = multiFormatReader.decode(new BinaryBitmap( new HybridBinarizer( new RGBLuminanceSource(texture2d.EncodeToPNG(),texture2d.width-1,texture2d.height-1))));