mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
c++ port of r2550
git-svn-id: https://zxing.googlecode.com/svn/trunk@2621 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
be5f83c52d
commit
94cacd59f7
|
@ -80,14 +80,7 @@ std::vector<Ref<FinderPatternInfo> > MultiFinderPatternFinder::findMulti(DecodeH
|
|||
} else { // White pixel
|
||||
if ((currentState & 1) == 0) { // Counting black pixels
|
||||
if (currentState == 4) { // A winner?
|
||||
if (foundPatternCross(stateCount)) { // Yes
|
||||
bool 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;
|
||||
|
|
Loading…
Reference in a new issue