I am making an online crawl application with HTML5 and javascript only using Quagga.js.
I need the webcam to work for searching barcodes and imported quagga.js:
On the quagga web page, you will find the Quagga.init method. to initialize the webcam view. I entered this code in the script tag:
Quagga.init({
inputStream : {
name : "Live",
type : "LiveStream"
},
decoder : {
readers : ["code_128_reader"]
}
}, function() {
console.log("Initialization finished. Ready to start");
Quagga.start();
});
But nothing happened. What do I need to do to get this webcam working? Any other opinions on creating a barcode scanning web application?
Thanks for answering!
source
share