mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 08:56:55 +08:00
Got edgefinder working
This commit is contained in:
@@ -39,7 +39,7 @@ PlateLines::~PlateLines()
|
||||
{
|
||||
}
|
||||
|
||||
void PlateLines::processImage(Mat inputImage, float sensitivity)
|
||||
void PlateLines::processImage(Mat inputImage, vector<TextLine> textLines, float sensitivity)
|
||||
{
|
||||
if (this->debug)
|
||||
cout << "PlateLines findLines" << endl;
|
||||
@@ -73,10 +73,10 @@ void PlateLines::processImage(Mat inputImage, float sensitivity)
|
||||
|
||||
Mat mask = Mat::zeros(inputImage.size(), CV_8U);
|
||||
|
||||
for (uint i = 0; i < pipelineData->textLines.size(); i++)
|
||||
for (uint i = 0; i < textLines.size(); i++)
|
||||
{
|
||||
vector<vector<Point> > polygons;
|
||||
polygons.push_back(pipelineData->textLines[i].textArea);
|
||||
polygons.push_back(textLines[i].textArea);
|
||||
fillPoly(mask, polygons, Scalar(255,255,255));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user