Issue 1308 allow PDF417 with row height 2

git-svn-id: https://zxing.googlecode.com/svn/trunk@2349 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-07-09 13:47:48 +00:00
parent b58a3e3c1d
commit 17a237e88a

View file

@ -104,8 +104,8 @@ final class BitMatrixParser {
// that are more or less the same
matchingConsecutiveScans++;
// Height of a row is a multiple of the module size in pixels
// Usually at least 3 times the module size
if (matchingConsecutiveScans >= moduleWidth * 2) { // MGMG
// It's supposed to be >= 3x module width, but, accept anything >= 2x
if ((matchingConsecutiveScans + 1) >= 2.0f * moduleWidth) {
// We have some previous matches as well as a match here
// Set processing a unique row.
rowInProgress = true;