Updated textline dependencies to provide crop size in function call. Fixes issue #126.

This commit is contained in:
Matt Hill
2015-05-30 10:11:06 -04:00
parent c18d76bbdc
commit 5c6af43212
3 changed files with 4 additions and 4 deletions

View File

@@ -151,7 +151,7 @@ namespace alpr
vector<Point> textArea = getCharArea(topLine, bottomLine);
TextLine textLine(textArea, linePolygon);
TextLine textLine(textArea, linePolygon, pipeline_data->crop_gray.size());
tempTextLines.push_back(textLine);
}
@@ -168,7 +168,7 @@ namespace alpr
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, pipeline_data->crop_gray.size()));
}
}