mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -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++) {
|
||||
// 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]++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue