serratus / quaggaJS

An advanced barcode-scanner written in JavaScript
https://serratus.github.io/quaggaJS/
MIT License
5.07k stars 979 forks source link

Unable to scan code-128 barcode format #467

Open shreya-sawardekar opened 3 years ago

shreya-sawardekar commented 3 years ago

I am trying to scan a barcode of format code 128. But the library is not scanning the barcode correctly.

I tried using the demo page: https://serratus.github.io/quaggaJS/examples/live_w_locator.html

I have attached the barcode.

Environment used: Mobile : One plus 8 OS: Android 11 Browser: Chrome 90 barcode

ericblade commented 3 years ago

fwiw, inlite can read it (https://online-barcode-reader.inliteresearch.com), so the code is good. i dont have time to fiddle with it in quagga right now, but my suspicion is that quagga might need a little more discernible whitespace around it, although some settings might be tweakable to get there...

shreya-sawardekar commented 3 years ago

@ericblade can you please let me know what settings i need to tweak?

baeteja commented 3 years ago

Same problem here

ericblade commented 3 years ago

Whenever I encounter problems with a particular type or on a particular hardware, i take an image of the barcode and feed it to the live demo page, and then start adjusting things. Sorry i don't have better advice.

kuhlaid commented 3 years ago

Scanning the barcode image on the examples page gives different results (shown below) OnPaste 20210731-160929