Fixed a crash on multiline plates when no line is found

This commit is contained in:
Matt Hill
2015-09-25 20:31:43 -04:00
parent 7040310229
commit 022e191fb9

View File

@@ -62,7 +62,7 @@ namespace alpr
if (bestLine.size() > 0)
linesFound.push_back(bestLine);
if (pipeline_data->isMultiline)
if (pipeline_data->isMultiline && bestCharArea.size() > 0)
{
vector<Point> next_best_line = findNextBestLine(Size(contours.width, contours.height), bestCharArea);