mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:26:53 +08:00
Fixing issue #261
This commit is contained in:
@@ -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
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user