mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Adding Code39VINReader
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
<select name="decoder_readers;input-stream_src">
|
||||
<option value="code_128" selected="selected">Code 128</option>
|
||||
<option value="code_39">Code 39</option>
|
||||
<option value="code_39_vin">Code 39 VIN</option>
|
||||
<option value="ean">EAN</option>
|
||||
<option value="ean_8">EAN-8</option>
|
||||
<option value="upc">UPC</option>
|
||||
|
||||
@@ -84,18 +84,27 @@ $(function() {
|
||||
state: {
|
||||
inputStream: { name: "Test",
|
||||
type: "ImageStream",
|
||||
src: "../test/fixtures/code_128/",
|
||||
src: "../test/fixtures/code_39_vin/",
|
||||
length: 10
|
||||
},
|
||||
decoder : {
|
||||
readers : ["code_128_reader"]
|
||||
readers : ["code_39_vin_reader"],
|
||||
drawScanline: true,
|
||||
},
|
||||
numOfWorkers: 4,
|
||||
locator: {
|
||||
halfSample: false,
|
||||
showSkeleton: true,
|
||||
showFoundPatches: true
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
App.init();
|
||||
window.App = App;
|
||||
|
||||
Quagga.onProcessed(function(result) {
|
||||
console.log('Quagga.onProcessed', result);
|
||||
var drawingCtx = Quagga.canvas.ctx.overlay,
|
||||
drawingCanvas = Quagga.canvas.dom.overlay;
|
||||
|
||||
@@ -129,4 +138,4 @@ $(function() {
|
||||
$node.find("h4.code").html(detectedCode);
|
||||
$("#result_strip ul.thumbnails").prepend($node);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user