mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 10:17:02 +08:00
Updated textline dependencies to provide crop size in function call. Fixes issue #126.
This commit is contained in:
@@ -117,7 +117,7 @@ namespace alpr
|
|||||||
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
|
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
|
||||||
linePolygonRemapped = imgTransform.remapSmallPointstoCrop(linePolygon, 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
|
// Find the PlateLines for this crop
|
||||||
|
@@ -101,7 +101,7 @@ namespace alpr
|
|||||||
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
|
textAreaRemapped = imgTransform.remapSmallPointstoCrop(textArea, transmtx);
|
||||||
linePolygonRemapped = imgTransform.remapSmallPointstoCrop(linePolygon, 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();
|
pipeline_data->textLines.clear();
|
||||||
|
@@ -151,7 +151,7 @@ namespace alpr
|
|||||||
|
|
||||||
vector<Point> textArea = getCharArea(topLine, bottomLine);
|
vector<Point> textArea = getCharArea(topLine, bottomLine);
|
||||||
|
|
||||||
TextLine textLine(textArea, linePolygon);
|
TextLine textLine(textArea, linePolygon, pipeline_data->crop_gray.size());
|
||||||
|
|
||||||
tempTextLines.push_back(textLine);
|
tempTextLines.push_back(textLine);
|
||||||
}
|
}
|
||||||
@@ -168,7 +168,7 @@ namespace alpr
|
|||||||
vector<Point> linePolygon = tempTextLines[i].linePolygon;
|
vector<Point> linePolygon = tempTextLines[i].linePolygon;
|
||||||
if (updatedTextArea.size() > 0 && linePolygon.size() > 0)
|
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()));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user