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

QR Code Scan does not work with 2500 characters #719

Open
fctaddia opened this issue Aug 12, 2022 · 4 comments
Open

QR Code Scan does not work with 2500 characters #719

fctaddia opened this issue Aug 12, 2022 · 4 comments

Comments

@fctaddia
Copy link

fctaddia commented Aug 12, 2022

Description of the problem:

I have a 2434 character qrcode but the scanner can't scan the qrcode even if I frame it for a few minutes.
I have read the qr code theory and it should be able to contain up to 4296 alphanumeric characters, a much larger number than mine. So I don't understand what the problem is. My app is 2 years old and I have always scanned smaller qr code but now I need to scan bigger qr code, this is to say that the scanner is implemented correctly.

Which library version are you using? E.g. 3.2.0.

4.3.0

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5,
Android 5.0)

Pixel 5, Android 12 API 32

Does the same happen on other devices or an emulator?

It happens both on the emulator and also on other physical devices

Can you reproduce the issue in the sample project included with the library? If not, can you
provide your own sample project or sample code that produces this error?

It is not my code the problem but the qr code which is quite large. I attach the qr code that I can not scan.

qrcode

In the case of an error do you have a stack trace or adb logs?

No, because there are no exceptions or other errors, it simply does not scan the QR code without giving any error message.

P.S. The first qr code reader that I download from the app store can read this qr code so it means that it was created correctly (on IOS)

@rkistner
Copy link
Member

I tested it on my phone, and I can scan your barcode (with some difficulty).

So it's not a hard limitation of the library, but it is not designed for optimal performance with such large barcodes.

Unfortunately, improving the algorithms to better handle large barcodes like these is a difficult task, not a simple bugfix. And it would have to be done as part of the project for the decoding algorithms: https://github.com/zxing/zxing.

@fctaddia
Copy link
Author

Hello, in the meantime, thanks for replying. Ah I didn't think ... I thought there was an imposed limit. I'd say I'll find another way to pass that information on. Also because if it is very difficult to scan people then get stressed.

@alphanumericaracters
Copy link

It can be problems of pixels of the cell phone camera, the distance between the points is very small.

@lilyLoveSummerDay
Copy link

lilyLoveSummerDay commented Aug 15, 2023

@fctaddia hello,I have encountered the same problem.Have you solved it or not?
This is my test QrCode:
QR_test

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

No branches or pull requests

4 participants