Improved EAN and UPC reading

This commit is contained in:
Christoph Oberhofer
2015-05-20 18:32:04 +02:00
parent 8d986c339d
commit 3fcf9ca5be
8 changed files with 291 additions and 12 deletions
+4 -4
View File
@@ -1090,8 +1090,8 @@ define(
function(BarcodeReader) {
function EANReader() {
BarcodeReader.call(this);
function EANReader(opts) {
BarcodeReader.call(this, opts);
}
var properties = {
@@ -1124,8 +1124,8 @@ define(
[2, 1, 1, 3]
]},
CODE_FREQUENCY : {value: [0, 11, 13, 14, 19, 25, 28, 21, 22, 26]},
SINGLE_CODE_ERROR: {value: 1},
AVG_CODE_ERROR: {value: 0.5}
SINGLE_CODE_ERROR: {value: 0.7},
AVG_CODE_ERROR: {value: 0.3}
};
EANReader.prototype = Object.create(BarcodeReader.prototype, properties);
+2 -2
View File
File diff suppressed because one or more lines are too long