Issue 1477 improve multi QR code finder logic

git-svn-id: https://zxing.googlecode.com/svn/trunk@2550 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2013-01-09 21:30:40 +00:00
parent 067321b68a
commit 2d135af9c9

View file

@ -264,14 +264,7 @@ final class MultiFinderPatternFinder extends FinderPatternFinder {
} else { // White pixel
if ((currentState & 1) == 0) { // Counting black pixels
if (currentState == 4) { // A winner?
if (foundPatternCross(stateCount)) { // Yes
boolean confirmed = handlePossibleCenter(stateCount, i, j);
if (!confirmed) {
do { // Advance to next black pixel
j++;
} while (j < maxJ && !image.get(j, i));
j--; // back up to that last white pixel
}
if (foundPatternCross(stateCount) && handlePossibleCenter(stateCount, i, j)) { // Yes
// Clear state to start looking again
currentState = 0;
stateCount[0] = 0;