mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
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:
parent
b58a3e3c1d
commit
17a237e88a
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue