serratus / quaggaJS

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

Problem with ean code recognition #289

Open umaxfun opened 6 years ago

umaxfun commented 6 years ago

Hi there!

I've encountered a problem with reading these barcodes: barcode-1 barcode-3

For some reason they are unreadable both in the demos and in my own tests. What may be the problem with them?

ericblade commented 6 years ago

i initially wanted to say that a google search on those codes doesn't return much confidence, so i was suspecting they may be broken barcodes.. however, then I attempted to scan them off my monitor using my Quagga scanner on my phone, and they worked.

I'm using

        Quagga.init({
            inputStream: {
                type: 'LiveStream',
                target: document.querySelector('#scannerViewport'),
                constraints,
            },
            locator: {
                patchSize: 'medium',
                halfSample: true,
            },
            numOfWorkers: window.navigator.hardwareConcurrency || 2,
            decoder: {
                readers: [ 'upc_reader', 'ean_reader' ],
            },
            locate: true,
        }

not sure if that helps.

umaxfun commented 6 years ago

I tried to scan with node.js api, just feeding them as an image, and no luck.