Skip to content

Commit

Permalink
Added test-images for codabar
Browse files Browse the repository at this point in the history
  • Loading branch information
serratus committed Apr 16, 2015
1 parent 50bb3e7 commit 21aa205
Show file tree
Hide file tree
Showing 15 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dist/quagga.js
Original file line number Diff line number Diff line change
Expand Up @@ -6756,9 +6756,9 @@ define(

["space", "bar"].forEach(function(key) {
var kind = categorization[key];
kind.wide.min = (kind.narrow.size/kind.narrow.counts + kind.wide.size / kind.wide.counts) / 2;
kind.narrow.max = kind.wide.min;
kind.wide.max = (kind.wide.size * self.MAX_ACCEPTABLE + self.PADDING) / kind.wide.counts;
kind.wide.min = Math.floor((kind.narrow.size/kind.narrow.counts + kind.wide.size / kind.wide.counts) / 2);
kind.narrow.max = Math.ceil(kind.wide.min);
kind.wide.max = Math.ceil((kind.wide.size * self.MAX_ACCEPTABLE + self.PADDING) / kind.wide.counts);
});

return categorization;
Expand Down Expand Up @@ -7340,7 +7340,7 @@ define('config',[],function(){
debug: false,
controls: false,
locate: true,
numOfWorkers: 0,
numOfWorkers: 4,
visual: {
show: true
},
Expand Down
2 changes: 1 addition & 1 deletion dist/quagga.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/static_images.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(function() {
},
config: {
reader: "codabar",
length: 1
length: 10
},
attachListeners: function() {
$(".controls").on("click", "button.next", function(e) {
Expand Down
6 changes: 3 additions & 3 deletions src/codabar_reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ define(

["space", "bar"].forEach(function(key) {
var kind = categorization[key];
kind.wide.min = (kind.narrow.size/kind.narrow.counts + kind.wide.size / kind.wide.counts) / 2;
kind.narrow.max = kind.wide.min;
kind.wide.max = (kind.wide.size * self.MAX_ACCEPTABLE + self.PADDING) / kind.wide.counts;
kind.wide.min = Math.floor((kind.narrow.size/kind.narrow.counts + kind.wide.size / kind.wide.counts) / 2);
kind.narrow.max = Math.ceil(kind.wide.min);
kind.wide.max = Math.ceil((kind.wide.size * self.MAX_ACCEPTABLE + self.PADDING) / kind.wide.counts);
});

return categorization;
Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define(function(){
debug: false,
controls: false,
locate: true,
numOfWorkers: 0,
numOfWorkers: 4,
visual: {
show: true
},
Expand Down
Binary file modified test/fixtures/codabar/image-001.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-002.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-003.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-004.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-005.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-006.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-007.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-008.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-009.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added test/fixtures/codabar/image-010.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21aa205

Please sign in to comment.