Fixing issue #261

This commit is contained in:
Alan Tse
2016-01-20 23:15:45 -08:00
parent 7cfb294984
commit 3fde593240

View File

@@ -114,8 +114,9 @@ namespace alpr
do do
{ {
const char* choice = ci.GetUTF8Text(); const char* choice = ci.GetUTF8Text();
//1/17/2016 adt adding check to avoid double adding same character if ci is same as symbol. Otherwise first choice from ResultsIterator will get added twice when choiceIterator run.
postProcessor.addLetter(string(choice), line_idx, absolute_charpos, ci.Confidence()); if (string(symbol) != string(choice))
postProcessor.addLetter(string(choice), line_idx, absolute_charpos, ci.Confidence());
if (this->config->debugOcr) if (this->config->debugOcr)
{ {
@@ -152,4 +153,4 @@ namespace alpr
} }
} }
} }