- Home /
QR decode from Zxing on iOS
Hi, I'm trying to use this one http://ydaira.blogspot.co.il/2012/05/how-to-decode-qr-code-using-unity3d.html With reading from WebCamTexture on iOS, though getting an error from the zxing dll when trying to decode:
ReaderException: Exception of type 'com.google.zxing.ReaderException' was thrown. at com.google.zxing.common.GlobalHistogramBinarizer.estimateBlackPoint (System.Int32[] buckets) [0x00000] in :0 at com.google.zxing.common.GlobalHistogramBinarizer.get_BlackMatrix () [0x00000] in :0 at com.google.zxing.common.HybridBinarizer.binarizeEntireImage () [0x00000] in :0 at com.google.zxing.common.HybridBinarizer.get_BlackMatrix () [0x00000] in :0 at com.google.zxing.BinaryBitmap.get_BlackMatrix () [0x00000] in :0 at com.google.zxing.qrcode.QRCodeReader.decode (com.google.zxing.BinaryBitmap image, System.Collections.Hashtable hints) [0x00000] in :0 at com.google.zxing.qrcode.QRCodeReader.decode (System.SByte[] d, Int32 W, Int32 H) [0x00000] in :0 at qrCam.DecodeQR () [0x00000] in :0 at qrCam.Update () [0x00000] in :0 (Filename: Line: -1)
Any ideas..?
Answer by cedricpoon · Feb 22, 2016 at 09:15 AM
If you are looking for iOS ZXing.Net decoding feature only, you can take a look in my Github fork of ZXing.Net
https://github.com/cedricpoon/ZXing.Net
There is a working example of how iOS decodes QR from WebTexture under Unity.
Hi cedricppon, I use your ZXing.Net(https://github.com/cedricpoon/ZXing.Net) and still cannot decode QR Code on iOS 9.2 Could you help me? Thanks.
Hello Swerit. Thank you for your report of such issue. Actually my fork from ZXing.Net is modified for one of my projects, which works fine under iOS/Android/OSX/Windows. I have opened an issue on Github and started working on it. You can get the latest status of my fork over there.
Happy coding :-)
Issue fixed, see https://github.com/cedricpoon/ZXing.Net/issues/1
Your answer
![](https://koobas.hobune.stream/wayback/20220613082119im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
What is going on with Zxing Libary in portrait mode? 0 Answers
Getting Vuforia to work with zxing 3 Answers
ARCore for Unity save camera image 1 Answer
Trouble with ZXing QR Scanning 0 Answers