ChecksumException in zxing QRCodeReader when NOT reading a QR-code with an URL

拟墨画扇 提交于 2019-12-05 08:29:52

This issue was actually a little misleading. The reason for simple qr codes with number sequences failing was that their patterns were bigger, as the code contained less information. URL QR codes had more information and thus a higher resolution and smaller "patterns". The source of the issue was that the webcam I was testing with was extremely sensitive to focus issues (or chromatical aberration, I do not know), so QR codes with low resolution had to be moved FURTHER away from the webcam in order to be read correctly, than URL QR codes... This issue was only this significant with my development PC's Asus webcam, all other webcams I tried basically worked with all my test QR codes.

ChecksumException generally means it began to decode correctly, but the encoding of the QR code was invalid. It could indicate a problem with how the QR code was created, especially if it happens consistently.

However the QR codes you link to here looks OK, in that it decodes fine:

http://zxing.org/w/decode?u=http%3A%2F%2Fapi.qrserver.com%2Fv1%2Fcreate-qr-code%2F%3Fdata%3D12345%26size%3D250x250 http://zxing.org/w/decode?u=http%3A%2F%2Fgoqrme.remotefile.net%2Fimg%2Fact%2Fqrcode_generator%2Fqr_default.png

It also scans instantly with Barcode Scanner. Both are from zxing.

I wonder if you are flipping the image -- or, not un-flipping the flipped image that a webcam typically gives you.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!