mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 15:26:53 +08:00
Don't allow multiline plates with only 1 line
This commit is contained in:
@@ -83,6 +83,10 @@ CharacterRegion::CharacterRegion(PipelineData* pipeline_data)
|
||||
else if (absangle > 1)
|
||||
confidenceDrainers += (config->maxPlateAngleDegrees - absangle) ;
|
||||
|
||||
// If a multiline plate has only one line, disqualify
|
||||
if (pipeline_data->isMultiline && pipeline_data->textLines.size() < 2)
|
||||
confidenceDrainers += 95;
|
||||
|
||||
if (confidenceDrainers >= 100)
|
||||
this->confidence=1;
|
||||
else
|
||||
|
Reference in New Issue
Block a user