quaggaJS
quaggaJS copied to clipboard
QR code support
any way to add QR scan?
I am also interested in this, but looking through the history of question and request, this is an old one: https://github.com/serratus/quaggaJS/issues/2 https://github.com/serratus/quaggaJS/issues/120
Are there plans to add this, and are there any workaround or wrapper to do this?
It is likely that the qr reader could be extracted from here : https://github.com/cozmo/jsQR
I have been able to get this working with the https://github.com/zxing-js/library
Seems we have a few people who have managed to get this to work in the various Issues that request it. Anyone care to take a stab at figuring out a good and proper way to include it into the project?
@memic84 But you dumped quagga or extracted the qr reader ?
@siemiatj I didn't use Quagga, but used zxing-js completely, and implemented my own component. Quagga has ofcourse better support for 1D codes, while the latter has only EAN-13. But i only needed EAN-13 barcode format.
I did both, just added a 2s delay. So first I'm trying to find a QR code with zxing, and then switch to quagga.
Found a solution on a fork of this project: https://github.com/ericblade/quagga2-reader-qr/blob/master/example/src/App.tsx
fwiw, my fork does have an experimental support for attaching external readers, it's not 100%, though. Seems to work in node and browser, as long as you set workers to 0, haven't tested it with live decoding yet, though, trying to get a bunch of maintenance tasks done, and figure out a way to automated test live decode to some degree... probably need to simulate the media devices interface with provided images somehow.. hmm.