journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.77k stars 1.27k forks source link

QR Code Scan does not work with 2500 characters #719

Open fctaddia opened 2 years ago

fctaddia commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.

lilyLoveSummerDay commented 1 year ago

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