Improved recognition of Code 39 barcodes

pull/28/head
Christoph Oberhofer 10 years ago
parent 8e97b3355a
commit 6524472f69

2
dist/quagga.js vendored

@ -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;
} }
} }

File diff suppressed because one or more lines are too long

@ -139,7 +139,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;
} }
} }

Loading…
Cancel
Save