Fixed issue with must_match_pattern not returning enough values

This commit is contained in:
Matt Hill
2015-10-01 20:17:20 -04:00
parent 5db8a5ca80
commit 5f02b699c3

View File

@@ -310,7 +310,7 @@ namespace alpr
consecutiveNonMatches += 1; consecutiveNonMatches += 1;
permutations.pop(); permutations.pop();
if (allPossibilities.size() >= topn || consecutiveNonMatches >= 10) if (allPossibilities.size() >= topn || consecutiveNonMatches >= (topn*2))
break; break;
// add child permutations to queue // add child permutations to queue