mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Updated to 0.6.14
This commit is contained in:
+1398
-1043
File diff suppressed because it is too large
Load Diff
Vendored
+6
-4
File diff suppressed because one or more lines are too long
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -7,17 +7,17 @@ showInMenu: true
|
||||
quaggaJS
|
||||
========
|
||||
|
||||
- [Changelog](#changelog) (2015-07-08)
|
||||
- [Changelog](#changelog) (2015-07-29)
|
||||
|
||||
## What is QuaggaJS?
|
||||
|
||||
QuaggaJS is a barcode-scanner entirely written in JavaScript supporting real-
|
||||
time localization and decoding of various types of barcodes such as __EAN__,
|
||||
__CODE 128__, __CODE 39__, __EAN 8__, __UPC-A__, __UPC-C__ and __CODABAR__.
|
||||
The library is also capable of using `getUserMedia` to get direct access to
|
||||
the user's camera stream. Although the code relies on heavy image-processing
|
||||
even recent smartphones are capable of locating and decoding barcodes in
|
||||
real-time.
|
||||
__CODE 128__, __CODE 39__, __EAN 8__, __UPC-A__, __UPC-C__, __I2of5__ and
|
||||
__CODABAR__. The library is also capable of using `getUserMedia` to get direct
|
||||
access to the user's camera stream. Although the code relies on heavy image-
|
||||
processing even recent smartphones are capable of locating and decoding
|
||||
barcodes in real-time.
|
||||
|
||||
Try some [examples](http://serratus.github.io/quaggaJS/examples) and check out
|
||||
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>
|
||||
|
||||
### 2015-07-29
|
||||
- Features
|
||||
- Added basic support for [ITF][i2of5_wiki] barcodes (`i2of5_reader`)
|
||||
|
||||
### 2015-07-08
|
||||
- Improvements
|
||||
- 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
|
||||
[oberhofer_co_how]: http://www.oberhofer.co/how-barcode-localization-works-in-quaggajs/
|
||||
[github_examples]: http://serratus.github.io/quaggaJS/examples
|
||||
[i2of5_wiki]: https://en.wikipedia.org/wiki/Interleaved_2_of_5
|
||||
|
||||
Reference in New Issue
Block a user