Not decoding barcode.
See original GitHub issueI 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
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @mhadaily for clarifying this.
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: