语言

Menu
Sites
Language
barcode-scanner

QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real-time localization and decoding of various types of barcodes such as EAN and CODE128. The library is also capable of using getUserMedia to get direct access to the user's camera stream. 

http://serratus.github.io/quaggaJS/

examples with webcam, etc http://serratus.github.io/quaggaJS/examples/

blog post: http://www.oberhofer.co/how-barcode-localization-works-in-quaggajs/

编辑者为: John Ixion 25 11月, 2014
查看选择的答案

响应

2 回复
colin Rao
How to integrate it into Tizen web application? Could you share some demo code here? Thanks!
Mark as answer
Marco Buettner
var options = {
  readers: ['code_128_reader'],
  locate: true, // try to locate the barcode in the image
  src: dataResult[1] // or 'data:image/jpg;base64,' + data
};

Quagga.decodeSingle(options, function(result){
  console.log(result);
});

Use this on camera snapshot response