Incorrect code result when scanning barcode through Chrome on an Android Device
Hello, I have tested the UPC barcode scanning on both iOS and Android devices. iOS was able to scan the code correctly in Chrome, Safari and Firefox. Android was able to scan the code correctly in Firefox, but scanning in Chrome provides an incorrect code.
I have set readers to upc_reader and constraints to a higher resolution. As well as disabling Half Sampling for Chrome and Android. I am trying to scan a UPC Barcode 078742040370 and it is returning 012142040370 instead. Here is the Barcode image I am trying to scan
Tested on Android Galaxy S21+ with latest Chrome Application 134.0.6998.135. I am using a CDN <script src="https://cdn.jsdelivr.net/npm/@ericblade/[email protected]/dist/quagga.js"></script>
Possibly a bug or an issue with Quagga2 set up on my end? Thanks!
Thank you for filing an issue! Please be patient. :-) Dont forget to add yourself to the contributors array in package.json! Have a great day!
UPC and EAN definitely require some handholding to work well consistently, as the readers seem to need several frames to agree on what they scan. I'm not very good at the image processing aspect of the software, but I have implemented some validation code that seems to work quite well at reducing error rates significantly.
I'd suggest having a look at https://github.com/ericblade/quagga2-react-example/blob/master/src/Scanner.js
This does come up a lot, and I'm going to close this thread in favor of this discussion: https://github.com/ericblade/quagga2/discussions/561