4 ms·
The wasm-based polyfill I posted works great for me, I use a <video> element to continously scan for QR codes (didn't test with other barcodes, but it is suppor
by littlecranky67 3y ago
The wasm-based polyfill I posted works great for me, I use a <video> element to continously scan for QR codes (didn't test with other barcodes, but it is supported by the polyfill). Currently sampling 4 times per second (every 250ms) and it feels no different than a native scanner on the same device.
Edit: Just updated my post with the codepen from the polyfill author: https://codepen.io/undecaf/pen/LYzXXzg https://codepen.io/undecaf/pen/LYzXXzg
It is butter smooth with EAN barcode when using the builtin webcam on my Macbook (720p on a 2019 MBP16)