Removed modal image drawing (used for debugging)

This commit is contained in:
Matt Hill
2014-10-19 20:55:28 -04:00
parent a10e65631c
commit 7038d0b9e5
5 changed files with 10 additions and 15 deletions

View File

@@ -167,12 +167,8 @@ void CharacterAnalysis::analyze()
vector<Point> linePolygon = tempTextLines[i].linePolygon;
pipeline_data->textLines.push_back(TextLine(updatedTextArea, linePolygon));
cout << "Test1" << endl;
Mat debugImage = pipeline_data->textLines[i].drawDebugImage(bestThreshold);
cout << "Test2" << endl;
drawAndWait(&debugImage);
}
cout << "Good contours inverted left: " << bestContours.getGoodIndicesCount() << endl;
@@ -522,7 +518,6 @@ bool CharacterAnalysis::isPlateInverted()
{
Mat charMask = getCharacterMask();
drawAndWait(&charMask);
Scalar meanVal = mean(bestThreshold, charMask)[0];

View File

@@ -204,7 +204,7 @@ vector<Point> LineFinder::getBestLine(const TextContours contours, vector<CharPo
if (bestScore < 0)
return bestStripe;
if (true)
if (pipeline_data->config->debugCharAnalysis)
{
cout << "The winning score is: " << bestScore << endl;
// Draw the winning line segment
@@ -215,7 +215,7 @@ vector<Point> LineFinder::getBestLine(const TextContours contours, vector<CharPo
cv::line(tempImg, topLines[bestScoreIndex].p1, topLines[bestScoreIndex].p2, Scalar(0, 0, 255), 2);
cv::line(tempImg, bottomLines[bestScoreIndex].p1, bottomLines[bestScoreIndex].p2, Scalar(0, 0, 255), 2);
drawAndWait(&tempImg);
displayImage(pipeline_data->config, "Winning lines", tempImg);
}
Point topLeft = Point(0, topLines[bestScoreIndex].getPointAt(0) );