It’s zxing-cpp, but compiled to Web Assembly.
Mostly a research project, although it works (Demo).
I haven't run extensive measurements yet, but it seems to be linearly proportional to the amount of pixels in the input picture.
Numbers that I saw (Firefox 59, on Github pages):
- 1.3 Megapixel, 17 ms
- 12 MP, 125 ms
- 190K pixel, 2 ms
Unless I remove it accidentally, you can see the timing and image dimensions in your browser's console.
Iff I have both time and interest:
- Get better perf numbers
- Distribute on npm
- Benchmark against asm.js version of zxing used in instascan
MIT