ZXing can't decode a few codes from long series created by itself. #621
Unanswered
proteusnexus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I found ZXing quite usefull for my non commercial project. It does great job however I struggle a little bit to get 100% consistent results while encoding and decoding series od QR codes.
Here is my scenario. There is a "sender" and "receiver".
"Sender"
"Receiver"
It works actually great, but it happens that 1-6 codes from ~260 long series can't be decoded for no reason. They look legit, like all other recived codes. Not distorted, blurred etc. Just sharp, grayscale images.
Since I've got original PNG files I can test if it was properly created and can be decoded without any problems. No issue here.
To test if something is wrong with the code/image received I checked them with online decoder like https://scanqr.org/ which is ZXing based. The "bad" code can be decoded without any problems.
So I'm getting a bit confusing results. Attaching one example.
Original QR code at source:

Received QR code

I would say that the quality of the received code is very good and actually the same like hundreds of other codes.
I tried to set additional options on decoder side like TryHarder, TryInverted - didn't help. Tried to adjust contrast - didn't help. Increasing ErrorCorrectionLevel on "sender" side didn't help as well.
Defnitely I'm not an expert in QR codes field, but spent already some time in this topic and now runnning out of ideas. I thought I'm almost there, but it turned out longer series always fail.
Any help will be appreciated.
Regards,
Prot
Beta Was this translation helpful? Give feedback.
All reactions