mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Update to 0.6.15
This commit is contained in:
@@ -9204,9 +9204,15 @@ function(InputStream,
|
|||||||
onDetected : function(callback) {
|
onDetected : function(callback) {
|
||||||
Events.subscribe("detected", callback);
|
Events.subscribe("detected", callback);
|
||||||
},
|
},
|
||||||
|
offDetected: function(callback) {
|
||||||
|
Events.unsubscribe("detected", callback);
|
||||||
|
},
|
||||||
onProcessed: function(callback) {
|
onProcessed: function(callback) {
|
||||||
Events.subscribe("processed", callback);
|
Events.subscribe("processed", callback);
|
||||||
},
|
},
|
||||||
|
offProcessed: function(callback) {
|
||||||
|
Events.unsubscribe("processed", callback);
|
||||||
|
},
|
||||||
setReaders: function(readers) {
|
setReaders: function(readers) {
|
||||||
setReaders(readers);
|
setReaders(readers);
|
||||||
},
|
},
|
||||||
|
|||||||
Vendored
+4
-5
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@ showInMenu: true
|
|||||||
quaggaJS
|
quaggaJS
|
||||||
========
|
========
|
||||||
|
|
||||||
- [Changelog](#changelog) (2015-07-29)
|
- [Changelog](#changelog) (2015-08-13)
|
||||||
|
|
||||||
## What is QuaggaJS?
|
## What is QuaggaJS?
|
||||||
|
|
||||||
@@ -147,6 +147,16 @@ In contrast to the calls described above, this method does not rely on
|
|||||||
`getUserMedia` and operates on a single image instead. The provided callback
|
`getUserMedia` and operates on a single image instead. The provided callback
|
||||||
is the same as in `onDetected` and contains the result `data` object.
|
is the same as in `onDetected` and contains the result `data` object.
|
||||||
|
|
||||||
|
### Quagga.offProcessed(handler)
|
||||||
|
|
||||||
|
In case the `onProcessed` event is no longer relevant, `offProcessed` removes
|
||||||
|
the given `handler` from the event-queue.
|
||||||
|
|
||||||
|
### Quagga.offDetected(handler)
|
||||||
|
|
||||||
|
In case the `onDetected` event is no longer relevant, `offDetected` removes
|
||||||
|
the given `handler` from the event-queue.
|
||||||
|
|
||||||
## <a name="resultobject">The result object</a>
|
## <a name="resultobject">The result object</a>
|
||||||
|
|
||||||
The callbacks passed into `onProcessed`, `onDetected` and `decodeSingle`
|
The callbacks passed into `onProcessed`, `onDetected` and `decodeSingle`
|
||||||
@@ -372,6 +382,11 @@ on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
|
|||||||
|
|
||||||
## <a name="changelog">Changelog</a>
|
## <a name="changelog">Changelog</a>
|
||||||
|
|
||||||
|
### 2015-08-13
|
||||||
|
- Improvements
|
||||||
|
- Added `offProcessed` and `offDetected` methods for detaching event-
|
||||||
|
listeners from the event-queue.
|
||||||
|
|
||||||
### 2015-07-29
|
### 2015-07-29
|
||||||
- Features
|
- Features
|
||||||
- Added basic support for [ITF][i2of5_wiki] barcodes (`i2of5_reader`)
|
- Added basic support for [ITF][i2of5_wiki] barcodes (`i2of5_reader`)
|
||||||
|
|||||||
Reference in New Issue
Block a user