mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
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:
parent
da4f56b022
commit
974fb5e403
|
@ -89,14 +89,14 @@ final class BitMatrixParser {
|
||||||
for (int j = 0; j < width; j++) {
|
for (int j = 0; j < width; j++) {
|
||||||
// Accumulate differences between this line and the
|
// Accumulate differences between this line and the
|
||||||
// previous line.
|
// previous line.
|
||||||
if (bitMatrix.get(i, j) != bitMatrix.get(i - 1, j)) {
|
if (bitMatrix.get(j, i) != bitMatrix.get(j, i - 1)) {
|
||||||
rowDifference++;
|
rowDifference++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rowDifference <= moduleWidth * MAX_ROW_DIFFERENCE) {
|
if (rowDifference <= moduleWidth * MAX_ROW_DIFFERENCE) {
|
||||||
for (int j = 0; j < width; j++) {
|
for (int j = 0; j < width; j++) {
|
||||||
// Accumulate the black pixels on this line
|
// Accumulate the black pixels on this line
|
||||||
if (bitMatrix.get(i, j)) {
|
if (bitMatrix.get(j, i)) {
|
||||||
rowCounters[j]++;
|
rowCounters[j]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@ public final class Decoder {
|
||||||
BitMatrix bits = new BitMatrix(dimension);
|
BitMatrix bits = new BitMatrix(dimension);
|
||||||
for (int i = 0; i < dimension; i++) {
|
for (int i = 0; i < dimension; i++) {
|
||||||
for (int j = 0; j < dimension; j++) {
|
for (int j = 0; j < dimension; j++) {
|
||||||
if (image[i][j]) {
|
if (image[j][i]) {
|
||||||
bits.set(i, j);
|
bits.set(j, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue