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
+1398 -1043
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">UPC</option>
<option value="upc_e">UPC-E</option> <option value="upc_e">UPC-E</option>
<option value="codabar">Codabar</option> <option value="codabar">Codabar</option>
<option value="i2of5">I2of5</option>
</select> </select>
</label> </label>
<label> <label>
+1
View File
@@ -27,6 +27,7 @@ showInMenu: false
<option value="upc">UPC</option> <option value="upc">UPC</option>
<option value="upc_e">UPC-E</option> <option value="upc_e">UPC-E</option>
<option value="codabar">Codabar</option> <option value="codabar">Codabar</option>
<option value="i2of5">I2of5</option>
</select> </select>
</fieldset> </fieldset>
</div> </div>
+27 -7
View File
@@ -1,14 +1,36 @@
$(function() { $(function() {
var App = { var App = {
init: function() { 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(); App.attachListeners();
Quagga.start(); Quagga.start();
}); });
}, },
config: { config: {
reader: "code_128", "default": {
length: 10 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() { attachListeners: function() {
var self = this; var self = this;
@@ -82,10 +104,8 @@ $(function() {
} }
}, },
state: { state: {
inputStream: { name: "Test", inputStream: {
type: "ImageStream", src: "../test/fixtures/code_128/"
src: site.baseurl + "/test/fixtures/code_128/",
length: 10
}, },
decoder : { decoder : {
readers : ["code_128_reader"] readers : ["code_128_reader"]
+11 -6
View File
@@ -7,17 +7,17 @@ showInMenu: true
quaggaJS quaggaJS
======== ========
- [Changelog](#changelog) (2015-07-08) - [Changelog](#changelog) (2015-07-29)
## What is QuaggaJS? ## What is QuaggaJS?
QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real- QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real-
time localization and decoding of various types of barcodes such as __EAN__, time localization and decoding of various types of barcodes such as __EAN__,
__CODE 128__, __CODE 39__, __EAN 8__, __UPC-A__, __UPC-C__ and __CODABAR__. __CODE 128__, __CODE 39__, __EAN 8__, __UPC-A__, __UPC-C__, __I2of5__ and
The library is also capable of using `getUserMedia` to get direct access to __CODABAR__. The library is also capable of using `getUserMedia` to get direct
the user's camera stream. Although the code relies on heavy image-processing access to the user's camera stream. Although the code relies on heavy image-
even recent smartphones are capable of locating and decoding barcodes in processing even recent smartphones are capable of locating and decoding
real-time. barcodes in real-time.
Try some [examples](http://serratus.github.io/quaggaJS/examples) and check out Try some [examples](http://serratus.github.io/quaggaJS/examples) and check out
the blog post ([How barcode-localization works in QuaggaJS][oberhofer_co_how]) the blog post ([How barcode-localization works in QuaggaJS][oberhofer_co_how])
@@ -372,6 +372,10 @@ on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
## <a name="changelog">Changelog</a> ## <a name="changelog">Changelog</a>
### 2015-07-29
- Features
- Added basic support for [ITF][i2of5_wiki] barcodes (`i2of5_reader`)
### 2015-07-08 ### 2015-07-08
- Improvements - Improvements
- Parameter tweaking to reduce false-positives significantly (for the - Parameter tweaking to reduce false-positives significantly (for the
@@ -486,3 +490,4 @@ introduced to the API.
[ean_8_wiki]: http://en.wikipedia.org/wiki/EAN-8 [ean_8_wiki]: http://en.wikipedia.org/wiki/EAN-8
[oberhofer_co_how]: http://www.oberhofer.co/how-barcode-localization-works-in-quaggajs/ [oberhofer_co_how]: http://www.oberhofer.co/how-barcode-localization-works-in-quaggajs/
[github_examples]: http://serratus.github.io/quaggaJS/examples [github_examples]: http://serratus.github.io/quaggaJS/examples
[i2of5_wiki]: https://en.wikipedia.org/wiki/Interleaved_2_of_5