zbar-ane
zbar-ane copied to clipboard
Wrong scans for QR and limiting the codes to scan
Hi! Thank you for this very useful ANE and your support of it!
I've faced some problems when scanning QR codes on Android (didn't test on iOS). When I try to scan QR code and move the camera to it, sometimes it reads it as barcode or nothing. For example, please, try to scan the bottom area of this sample QR-code. Sometimes I get results like 0112457408012787 or 0168665213573471. I think, the problem is that it handles the part of the QR as barcode and recognizes it. So, I wonder, is it possible to limit the codes formats to recognize?
Kind regards, Igor
hmm I've seen too that it sometimes it returns false scan results. Sadly this is not a problem with my code but with the Zbar library. I will look into it whether there is a new version or I can tweak it to handle false positives
Thanks for quick response!
You are right, this is not a problem of your code. But I think it's not a problem of Zbar also - it's essential to recognize the part of QR as barcode, they really can be similar. But the possibility to set the types of codes that are expected to be recognized is also useful feature, and will fix this issue.
I've added some new code, you can now specify what kind of code you want to scan. Note that it works for Android only for now.