Updated quagga to 0.5.2

This commit is contained in:
Christoph Oberhofer
2015-04-10 21:44:44 +02:00
parent f0edd499d5
commit ca64df23d1
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -6556,7 +6556,7 @@ define(
for (i = 0; i < numCounters && numWideBars > 0; i++) { for (i = 0; i < numCounters && numWideBars > 0; i++) {
if (counters[i] > maxNarrowWidth) { if (counters[i] > maxNarrowWidth) {
numWideBars--; numWideBars--;
if ((counters[i] * 3) >= wideBarWidth) { if ((counters[i] * 2) >= wideBarWidth) {
return -1; return -1;
} }
} }
@@ -7641,6 +7641,9 @@ function(Code128Reader, EANReader, InputStream, ImageWrapper, BarcodeLocator, Ba
CameraAccess.release(); CameraAccess.release();
} }
}, },
pause: function() {
_stopped = true;
},
onDetected : function(callback) { onDetected : function(callback) {
Events.subscribe("detected", callback); Events.subscribe("detected", callback);
}, },
+2 -2
View File
File diff suppressed because one or more lines are too long