question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not decoding barcode.

See original GitHub issue

I am trying to decode the bar code from a jpeg image. and my code is as follows,

Quagga.decodeSingle({
    src: "1.jpeg",
    numOfWorkers: 0,  // Needs to be 0 when used within node 
    inputStream: {
        size: 800  // restrict input-size to be 800px in width (long-side) 
    },
    decoder: {
        readers: ["code_128_reader","ean_reader"] // List of active readers 
    },
}, function(result) {
    if(result.codeResult) {
        console.log("result", result.codeResult.code);
    } else {
        console.log("not detected");
    }
});

Output

FrameGrabber {“videoSize”:[2479,3508],“canvasSize”:[565,800],“stepSize”:[4.387610619469027,4.385],“size”:[560,800],“topRight”:{“x”:0,“y”:0}} E:\QrCode\handler.js:22 if(result.codeResult) { ^

TypeError: Cannot read property ‘codeResult’ of undefined at E:\QrCode\handler.js:22:14 at Object.callback (E:\QrCode\node_modules\quagga\lib\quagga.js:4953:32) at Timeout._onTimeout (E:\QrCode\node_modules\quagga\lib\quagga.js:5397:30) at ontimeout (timers.js:365:14) at tryOnTimeout (timers.js:237:5) at Timer.listOnTimeout (timers.js:207:5)

Attached Image

Uploading 1.png…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
serratuscommented, Mar 31, 2017

Thanks @mhadaily for clarifying this.

1reaction
mhadailycommented, Mar 25, 2017

This format has not been supported. it’s PDF417. All the formats of boarding pass barcode are not being supported see here https://en.wikipedia.org/wiki/Bar-coded_boarding_pass

here is the list of supported readers and barcodes:

The most important property is readers which take an array of types of barcodes which should be decoded during the session. Possible values are:

code_128_reader (default) ean_reader ean_8_reader code_39_reader code_39_vin_reader codabar_reader upc_reader upc_e_reader i2of5_reader

Read more comments on GitHub >

github_iconTop Results From Across the Web

Your Barcode Does not Scan: Now what?
The obvious answer is to use a verifier. Usually—but not always—when a scanner cannot decode a barcode, a verifier can. Verifiers have a...
Read more >
Why does the scanner / mobile device not read this bar code?
There may be multiple reasons why a certain code can not be decoded. Below is a list with some of the reasons a...
Read more >
ITE Scan Beam not decoding barcodes
Tap on Menu icon located on the ITE toolbar and select ITE Menus. · From Main Menu screen, select 1) Set-Up Parms and...
Read more >
LS2208 Not Decoding in Hands-Free Mode When Inserted in ...
How to enable barcodes decoding when my LS2208 scanner is inserted in an Intellistand accessory for hands-free mode? applicable to. LS2208. resolution /...
Read more >
Barcode Reader sample app not decoding certain bar...
Solved: Using AppStudio 3.1, I can't seem to get the Barcode Reader app to decode Code 93 and UPC-EAN barcodes. I've tested the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found