openfoodfacts / open-prices-frontend

A vue.js front-end for Open Prices
24 stars 13 forks source link

Improve barcode scanner (alternative to html5-qrcode ?) #473

Open raphodn opened 6 months ago

raphodn commented 6 months ago

Story

For barcode detection we currently use mebjas/html5-qrcode (see BarcodeScanner.vue)

But it struggles to detect barcodes in various conditions, and can be frustrating for users.

raphodn commented 6 months ago

Alternatives

Library Links Details
htm5-qrcode Github 4.4k stars
Currently used
Recommended on OFF Slack
quaggaJS Github 4.9k stars
zbar + webassembly Blog post
davaeto commented 5 months ago

If it is legal, try to use the SCANDIT, the same used by Yuka app, and recognize all classic barcodes faster than you will understand what happened.