Skip to content

Commit

Permalink
Fixed EAN-8 Decoding Error
Browse files Browse the repository at this point in the history
  • Loading branch information
serratus committed May 5, 2015
1 parent 529bb33 commit 0e0cfce
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
54 changes: 27 additions & 27 deletions dist/quagga.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ define("almond", function(){});

define(
'barcode_reader',[],function() {

"use strict";

function BarcodeReader() {
this._row = [];
Expand Down Expand Up @@ -631,7 +631,7 @@ define(
"./barcode_reader"
],
function(BarcodeReader) {

"use strict";

function Code128Reader() {
BarcodeReader.call(this);
Expand Down Expand Up @@ -1079,7 +1079,7 @@ define(
"./barcode_reader"
],
function(BarcodeReader) {

"use strict";

function EANReader() {
BarcodeReader.call(this);
Expand Down Expand Up @@ -1379,7 +1379,7 @@ define(
/* global define */

define('image_loader',[],function() {

"use strict";

var ImageLoader = {};
ImageLoader.load = function(directory, callback, offset, size, sequence) {
Expand Down Expand Up @@ -1443,7 +1443,7 @@ define('image_loader',[],function() {
/* global define */

define('input_stream',["image_loader"], function(ImageLoader) {

"use strict";

var InputStream = {};
InputStream.createVideoStream = function(video) {
Expand Down Expand Up @@ -1720,7 +1720,7 @@ define("typedefs", (function (global) {
/* global define */

define('subImage',["typedefs"], function() {

"use strict";

/**
* Construct representing a part of another {ImageWrapper}. Shares data
Expand Down Expand Up @@ -1817,7 +1817,7 @@ define('subImage',["typedefs"], function() {
/* global define, vec2 */

define('cluster',[],function() {

"use strict";

/**
* Creates a cluster for grouping similar orientations of datapoints
Expand Down Expand Up @@ -4162,7 +4162,7 @@ define("glMatrixAddon", ["glMatrix"], (function (global) {
/* global define */

define('array_helper',[],function() {

"use strict";

return {
init : function(arr, val) {
Expand Down Expand Up @@ -4249,7 +4249,7 @@ define('array_helper',[],function() {

define('cv_utils',['cluster', 'glMatrixAddon', "array_helper"], function(Cluster2, glMatrixAddon, ArrayHelper) {


"use strict";
/*
* cv_utils.js
* Collection of CV functions and libraries
Expand Down Expand Up @@ -4864,7 +4864,7 @@ define('image_wrapper',[
],
function(SubImage, CVUtils, ArrayHelper) {


'use strict';

/**
* Represents a basic image combining the data and size.
Expand Down Expand Up @@ -5285,7 +5285,7 @@ define('image_wrapper',[
* http:https://www.codeproject.com/Tips/407172/Connected-Component-Labeling-and-Vectorization
*/
define('tracer',[],function() {

"use strict";

var Tracer = {
searchDirections : [[0, 1], [1, 1], [1, 0], [1, -1], [0, -1], [-1, -1], [-1, 0], [-1, 1]],
Expand Down Expand Up @@ -5394,7 +5394,7 @@ define('tracer',[],function() {
* http:https://www.codeproject.com/Tips/407172/Connected-Component-Labeling-and-Vectorization
*/
define('rasterizer',["tracer"], function(Tracer) {

"use strict";

var Rasterizer = {
createContour2D : function() {
Expand Down Expand Up @@ -5590,7 +5590,7 @@ define('rasterizer',["tracer"], function(Tracer) {
/* global define */

define('skeletonizer',[],function() {

"use strict";

/* @preserve ASM BEGIN */
function Skeletonizer(stdlib, foreign, buffer) {
Expand Down Expand Up @@ -5795,7 +5795,7 @@ define('skeletonizer',[],function() {
/* global define */

define('image_debug',[],function() {

"use strict";

return {
drawRect: function(pos, size, ctx, style){
Expand Down Expand Up @@ -6340,7 +6340,7 @@ function(ImageWrapper, CVUtils, Rasterizer, Tracer, skeletonizer, ArrayHelper, I
/* global define */

define('bresenham',[],function() {

"use strict";
var Bresenham = {};

var Slope = {
Expand Down Expand Up @@ -6546,7 +6546,7 @@ define(
"./array_helper"
],
function(BarcodeReader, ArrayHelper) {

"use strict";

function Code39Reader() {
BarcodeReader.call(this);
Expand Down Expand Up @@ -6748,7 +6748,7 @@ define(
"./barcode_reader"
],
function(BarcodeReader) {

"use strict";

function CodabarReader() {
BarcodeReader.call(this);
Expand Down Expand Up @@ -7061,7 +7061,7 @@ define(
"./ean_reader"
],
function(EANReader) {

"use strict";

function UPCReader() {
EANReader.call(this);
Expand Down Expand Up @@ -7092,7 +7092,7 @@ define(
"./ean_reader"
],
function(EANReader) {

"use strict";

function EAN8Reader() {
EANReader.call(this);
Expand All @@ -7106,7 +7106,7 @@ define(
self = this;

for ( i = 0; i < 4; i++) {
code = self._decodeCode(code.end);
code = self._decodeCode(code.end, self.CODE_G_START);
result.push(code.code);
decodedCodes.push(code);
}
Expand Down Expand Up @@ -7137,7 +7137,7 @@ define(
"./ean_reader"
],
function(EANReader) {

"use strict";

function UPCEReader() {
EANReader.call(this);
Expand Down Expand Up @@ -7261,7 +7261,7 @@ define('barcode_decoder',[
UPCReader,
EAN8Reader,
UPCEReader) {

"use strict";

var readers = {
code_128_reader: Code128Reader,
Expand Down Expand Up @@ -7538,7 +7538,7 @@ define('barcode_decoder',[
/* global define */

define('frame_grabber',["cv_utils"], function(CVUtils) {

"use strict";

var FrameGrabber = {};

Expand Down Expand Up @@ -7631,7 +7631,7 @@ define('frame_grabber',["cv_utils"], function(CVUtils) {
/* global define */

define('html_utils',[], function() {

"use strict";

function createNode(htmlStr) {
var temp = document.createElement('div');
Expand Down Expand Up @@ -7722,7 +7722,7 @@ define('config',[],function(){
/* global define */

define('events',[],function() {

"use strict";

var _events = function() {
var events = {};
Expand Down Expand Up @@ -7813,7 +7813,7 @@ define('events',[],function() {
/* global define, MediaStreamTrack */

define('camera_access',["html_utils"], function(HtmlUtils) {

"use strict";
var streamRef,
loadedDataHandler;

Expand Down Expand Up @@ -7975,7 +7975,7 @@ function(Code128Reader,
CameraAccess,
ImageDebug,
CVUtils) {

"use strict";

var _inputStream,
_framegrabber,
Expand Down
8 changes: 4 additions & 4 deletions dist/quagga.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quagga",
"version": "0.6.0",
"version": "0.6.1",
"description": "An advanced barcode-scanner written in JavaScript",
"main": "dist/quagga.js",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/ean_8_reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ define(
self = this;

for ( i = 0; i < 4; i++) {
code = self._decodeCode(code.end);
code = self._decodeCode(code.end, self.CODE_G_START);
result.push(code.code);
decodedCodes.push(code);
}
Expand Down

0 comments on commit 0e0cfce

Please sign in to comment.