nimiq / qr-scanner

Lightweight Javascript QR Code Scanner
https://nimiq.github.io/qr-scanner/demo
MIT License
2.35k stars 509 forks source link

Low scan rate in Safari vs Chrome on same device #242

Open reneroth opened 10 months ago

reneroth commented 10 months ago

Happens in my project as well as in the demo, using the "Scan from File" feature. In Safari the library is barely able to scan anything (1 out of 5 test files I have), while in Chrome it has a 5/5 detection rate.

To me, this either means Safari is using a native BarcodeDetector implementation that is far worse than this library, or that Chrome is using one that is far better.

What further complicates this matter is that other libraries also based on zxing are able to get a 5/5 detection rate in Safari, like for example the bloated html5-qrcode.

Has anyone else made similar experiences? How can I mitigate this? nimiq/qr-scanner offers the nicest API of all the solutions out there, but I need a better detection rate for my usecase.