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
4.9k stars 959 forks source link

onScanSuccess detect wrong code #744

Open tosatoandrea opened 1 year ago

tosatoandrea commented 1 year ago

Hi, I use html5-qrcode in Blazor Webassembly PWA (chrome latest version) on android (xiaomi 9t). Sometimes, at random, onScanSuccess give me a wrong code. Does it happen to you too? What could it depend on? Thank you

tosatoandrea commented 1 year ago

Some times also onScanSuccess is fired 2 or 3 times sequentially, last time have the correct code, but first and second a wrong code.

tosatoandrea commented 1 year ago

Update. Using timer to filter different codes detectd in a tight interval, I managed to get a satisfactory result, with the device I'm using.

elPre commented 1 year ago

Hi @tosatoandrea could you please provide your code, I am having the same issue and the SAME barcode gives me back 10 different decodeText, that is super weird. If you were super kind person please help out, thanks!