Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent results when scanning version 40 QR codes #109

Open
jmevangelist opened this issue Mar 30, 2017 · 4 comments
Open

Inconsistent results when scanning version 40 QR codes #109

jmevangelist opened this issue Mar 30, 2017 · 4 comments

Comments

@jmevangelist
Copy link

I've been testing this plugin on version 40 QR codes and I'm getting inconsistent results. The plugin will sometimes return a string of of random numbers that doesn't correlate with the QR I am scanning. #

@jmevangelist
Copy link
Author

Finally saw where the random numbers are coming from. The scanner actually misinterprets a small part of the QR as a barcode. I think the solution for this ( in case anyone have the same problem ) is to limit the scanner for QR codes only.

@jmevangelist
Copy link
Author

to do this on android just edit ZBarScannerActivity.java

modify:

for(ZBarcodeFormat format : getFormats()) {
   scanner.setConfig(format.getId(), Config.ENABLE, 0);
}

to

for(ZBarcodeFormat format : getFormats()) {
   scanner.setConfig(format.getId(), Config.ENABLE, 0);
}
scanner.setConfig(Symbol.QRCODE, Config.ENABLE, 1);

@nvrnagasai
Copy link

nvrnagasai commented Oct 5, 2017

Any solution or work around for the issue, I am facing the same, but I want both barcode and QR.
Inconsistent results even after scanning same qr code multiple times.

@shubhamkhuva
Copy link

I am also facing same issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants