Updated to 0.6.14

This commit is contained in:
Christoph Oberhofer
2015-07-29 22:19:55 +02:00
parent 544251de74
commit 8385e8a3bb
6 changed files with 1445 additions and 1061 deletions
+1399 -1044
View File
File diff suppressed because it is too large Load Diff
+6 -4
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -26,6 +26,7 @@ showInMenu: false
<option value="upc">UPC</option>
<option value="upc_e">UPC-E</option>
<option value="codabar">Codabar</option>
<option value="i2of5">I2of5</option>
</select>
</label>
<label>
+1
View File
@@ -27,6 +27,7 @@ showInMenu: false
<option value="upc">UPC</option>
<option value="upc_e">UPC-E</option>
<option value="codabar">Codabar</option>
<option value="i2of5">I2of5</option>
</select>
</fieldset>
</div>
+27 -7
View File
@@ -1,14 +1,36 @@
$(function() {
var App = {
init: function() {
Quagga.init(this.state, function() {
var config = this.config[this.state.decoder.readers[0]] || this.config.default;
config = $.extend(true, {}, config, this.state);
Quagga.init(config, function() {
App.attachListeners();
Quagga.start();
});
},
config: {
reader: "code_128",
length: 10
"default": {
inputStream: { name: "Test",
type: "ImageStream",
length: 10,
size: 800
},
locator: {
patchSize: "medium",
halfSample: true
}
},
"i2of5_reader": {
inputStream: {
size: 800,
type: "ImageStream",
length: 5
},
locator: {
patchSize: "small",
halfSample: false
}
}
},
attachListeners: function() {
var self = this;
@@ -82,10 +104,8 @@ $(function() {
}
},
state: {
inputStream: { name: "Test",
type: "ImageStream",
src: site.baseurl + "/test/fixtures/code_128/",
length: 10
inputStream: {
src: "../test/fixtures/code_128/"
},
decoder : {
readers : ["code_128_reader"]