mebjas / html5-qrcode

A cross platform HTML5 QR code reader. See end to end implementation at: https://scanapp.org
https://qrcode.minhazav.dev
Apache License 2.0
5.06k stars 976 forks source link

Scanning of big QR codes does not work in html5-qrcode, but works with ZXing demos #380

Open StenGruener opened 2 years ago

StenGruener commented 2 years ago

Describe the bug I cannot scan this big QR code: https://user-images.githubusercontent.com/25526781/53473345-76778700-3a6a-11e9-9ee4-2b72e19d691a.PNG

To Reproduce Scan.

Expected behavior I expect same output as with the ZXing demo: https://zxing-js.github.io/library/examples/multi-camera/

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Will updating ZXing dependency help?

ibalaji777 commented 2 years ago

facing same problem

mebjas commented 2 years ago

At a library level I can see that the underlying library is able to decode the QR Code.

One potential issue could be due to the QR box size which only covers a small portion of the viewfinder and thus to get the full qrcode you have to move a lot back and the QR code gets blurred due to filtering.

I'll check with an option for full size QR Scanning.

StenGruener commented 2 years ago

@mebjas ping, any updates here?

angelocuartel commented 2 years ago

I'm actually facing the same issue right now.

StenGruener commented 2 years ago

bump

StenGruener commented 2 years ago

@mebjas ping, we are facing a bad-blocker by this issue any idea how to adjust viewfinder?

mebjas commented 2 years ago

I was able to reproduce this well - the shared QR code couldn't get decoded with file based scanning either.

One idea that come to mind is by using a larger hidden canvas, I'll try that.

mebjas commented 2 years ago

I can verify that the zxing demo is able to scan the code, investigating further.

noelho commented 2 years ago

I just tried this and I managed to scan the QR code, however, I had to set my QRBox to at least 500px.

I was also having trouble scanning large sized QR codes, but it looks like increasing the QR box size resolves this issue. However, the downside is my capture screen becomes larger and larger.

I assume this has to do with the resolution of the image making it easier for the QR code to be decoded?

StenGruener commented 2 years ago

Ping and bump

mbrotos commented 1 year ago

Still an issue