Added PDF417 to list of readers. Will be used only if its specified in a Hint.

git-svn-id: https://zxing.googlecode.com/svn/trunk@987 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
kev.sully 2009-06-26 14:34:16 +00:00
parent da4f56b022
commit 974fb5e403
2 changed files with 4 additions and 4 deletions

View file

@ -89,14 +89,14 @@ final class BitMatrixParser {
for (int j = 0; j < width; j++) {
// Accumulate differences between this line and the
// previous line.
if (bitMatrix.get(i, j) != bitMatrix.get(i - 1, j)) {
if (bitMatrix.get(j, i) != bitMatrix.get(j, i - 1)) {
rowDifference++;
}
}
if (rowDifference <= moduleWidth * MAX_ROW_DIFFERENCE) {
for (int j = 0; j < width; j++) {
// Accumulate the black pixels on this line
if (bitMatrix.get(i, j)) {
if (bitMatrix.get(j, i)) {
rowCounters[j]++;
}
}

View file

@ -51,8 +51,8 @@ public final class Decoder {
BitMatrix bits = new BitMatrix(dimension);
for (int i = 0; i < dimension; i++) {
for (int j = 0; j < dimension; j++) {
if (image[i][j]) {
bits.set(i, j);
if (image[j][i]) {
bits.set(j, i);
}
}
}