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

@@ -117,7 +117,7 @@ namespace alpr
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
linePolygonRemapped = imgTransform.remapSmallPointstoCrop(linePolygon, transmtx);
newLines.push_back(TextLine(textAreaRemapped, linePolygonRemapped));
newLines.push_back(TextLine(textAreaRemapped, linePolygonRemapped, newCrop.size()));
}
// Find the PlateLines for this crop

View File

@@ -101,7 +101,7 @@ namespace alpr
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
linePolygonRemapped = imgTransform.remapSmallPointstoCrop(linePolygon, transmtx);
newLines.push_back(TextLine(textAreaRemapped, linePolygonRemapped));
newLines.push_back(TextLine(textAreaRemapped, linePolygonRemapped, pipeline_data->crop_gray.size()));
}
pipeline_data->textLines.clear();

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()));
}
}