mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Removed unused methods
This commit is contained in:
committed by
Christoph Oberhofer
parent
f1a963f4a0
commit
19f74e6106
@@ -18,7 +18,7 @@ module.exports = {
|
||||
singleChannel: false // true: only the red color-channel is read
|
||||
},
|
||||
locate: true,
|
||||
numOfWorkers: 1,
|
||||
numOfWorkers: 2,
|
||||
decoder: {
|
||||
readers: [
|
||||
'code_128_reader'
|
||||
|
||||
+1
-13
@@ -395,7 +395,7 @@ function createScanner() {
|
||||
y: e.data.size.y
|
||||
}, new Uint8Array(e.data.imageData));
|
||||
scanner.init(config, ready, imageWrapper);
|
||||
scanner.onProcessed(onProcessed);
|
||||
scanner.subscribe("processed", onProcessed);
|
||||
} else if (e.data.cmd === 'process') {
|
||||
imageWrapper.data = new Uint8Array(e.data.imageData);
|
||||
scanner.start();
|
||||
@@ -504,18 +504,6 @@ function createScanner() {
|
||||
unsubscribe(eventName, callback) {
|
||||
_events.unsubscribe(eventName, callback);
|
||||
},
|
||||
onDetected: function(callback) {
|
||||
_events.subscribe("detected", callback);
|
||||
},
|
||||
offDetected: function(callback) {
|
||||
_events.unsubscribe("detected", callback);
|
||||
},
|
||||
onProcessed: function(callback) {
|
||||
_events.subscribe("processed", callback);
|
||||
},
|
||||
offProcessed: function(callback) {
|
||||
_events.unsubscribe("processed", callback);
|
||||
},
|
||||
registerResultCollector: function(resultCollector) {
|
||||
if (resultCollector && typeof resultCollector.addResult === 'function') {
|
||||
_resultCollector = resultCollector;
|
||||
|
||||
Reference in New Issue
Block a user