mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Improved EAN and UPC reading
This commit is contained in:
+4
-4
@@ -8,8 +8,8 @@ define(
|
||||
function(BarcodeReader) {
|
||||
"use strict";
|
||||
|
||||
function EANReader() {
|
||||
BarcodeReader.call(this);
|
||||
function EANReader(opts) {
|
||||
BarcodeReader.call(this, opts);
|
||||
}
|
||||
|
||||
var properties = {
|
||||
@@ -42,8 +42,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);
|
||||
|
||||
Reference in New Issue
Block a user