mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 02:32:45 +08:00
Do not add lines with no valid characters
This commit is contained in:
@@ -161,9 +161,10 @@ void CharacterAnalysis::analyze()
|
|||||||
{
|
{
|
||||||
vector<Point> updatedTextArea = getCharArea(tempTextLines[i].topLine, tempTextLines[i].bottomLine);
|
vector<Point> updatedTextArea = getCharArea(tempTextLines[i].topLine, tempTextLines[i].bottomLine);
|
||||||
vector<Point> linePolygon = tempTextLines[i].linePolygon;
|
vector<Point> linePolygon = tempTextLines[i].linePolygon;
|
||||||
|
if (updatedTextArea.size() > 0 && linePolygon.size() > 0)
|
||||||
|
{
|
||||||
pipeline_data->textLines.push_back(TextLine(updatedTextArea, linePolygon));
|
pipeline_data->textLines.push_back(TextLine(updatedTextArea, linePolygon));
|
||||||
|
}
|
||||||
Mat debugImage = pipeline_data->textLines[i].drawDebugImage(bestThreshold);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user