mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 04:07:27 -08:00
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:
parent
067321b68a
commit
2d135af9c9
|
@ -264,14 +264,7 @@ final class MultiFinderPatternFinder extends FinderPatternFinder {
|
||||||
} else { // White pixel
|
} else { // White pixel
|
||||||
if ((currentState & 1) == 0) { // Counting black pixels
|
if ((currentState & 1) == 0) { // Counting black pixels
|
||||||
if (currentState == 4) { // A winner?
|
if (currentState == 4) { // A winner?
|
||||||
if (foundPatternCross(stateCount)) { // Yes
|
if (foundPatternCross(stateCount) && handlePossibleCenter(stateCount, i, j)) { // 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
|
|
||||||
}
|
|
||||||
// Clear state to start looking again
|
// Clear state to start looking again
|
||||||
currentState = 0;
|
currentState = 0;
|
||||||
stateCount[0] = 0;
|
stateCount[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue