mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue 1653 consistent interpretation of mask penalty i: applied when 5+i=5 (i=0) consecutive modules are the same
git-svn-id: https://zxing.googlecode.com/svn/trunk@2600 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
fc42aacc43
commit
b8873b8007
|
@ -208,7 +208,7 @@ final class MaskUtil {
|
||||||
prevBit = bit;
|
prevBit = bit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (numSameBitCells > 5) {
|
if (numSameBitCells >= 5) {
|
||||||
penalty += N1 + (numSameBitCells - 5);
|
penalty += N1 + (numSameBitCells - 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue