Removed misc debugging cout statements

This commit is contained in:
Matt Hill
2014-10-19 21:01:16 -04:00
parent 7038d0b9e5
commit cc4f72ff23
3 changed files with 4 additions and 10 deletions

View File

@@ -82,7 +82,6 @@ void LicensePlateCandidate::recognize()
Mat transmtx = getTransformationMatrix(pipeline_data->plate_corners, outputImageSize);
pipeline_data->crop_gray = deSkewPlate(this->pipeline_data->grayImg, outputImageSize, transmtx);
cout << "Size: " << outputImageSize.width << " - " << outputImageSize.height << endl;
// Apply a perspective transformation to the TextLine objects

View File

@@ -47,7 +47,9 @@ CharacterSegmenter::CharacterSegmenter(PipelineData* pipeline_data)
medianBlur(pipeline_data->crop_gray, pipeline_data->crop_gray, 3);
if (this->config->debugCharSegmenter)
cout << "Segmenter: inverted: " << pipeline_data->plate_inverted << endl;
if (pipeline_data->plate_inverted)
bitwise_not(pipeline_data->crop_gray, pipeline_data->crop_gray);

View File

@@ -141,8 +141,6 @@ void CharacterAnalysis::analyze()
{
vector<Point> linePolygon = linePolygons[i];
cout << "Polygon: " << linePolygon[0] << " - " << linePolygon[1] << " - " << linePolygon[2] << " - " << linePolygon[3] << endl;
LineSegment topLine = LineSegment(linePolygon[0].x, linePolygon[0].y, linePolygon[1].x, linePolygon[1].y);
LineSegment bottomLine = LineSegment(linePolygon[3].x, linePolygon[3].y, linePolygon[2].x, linePolygon[2].y);
@@ -153,8 +151,6 @@ void CharacterAnalysis::analyze()
tempTextLines.push_back(textLine);
}
cout << "Good contours inverted left: " << bestContours.getGoodIndicesCount() << endl;
filterBetweenLines(bestThreshold, bestContours, tempTextLines);
// Sort the lines from top to bottom.
@@ -171,10 +167,8 @@ void CharacterAnalysis::analyze()
}
cout << "Good contours inverted left: " << bestContours.getGoodIndicesCount() << endl;
this->thresholdsInverted = isPlateInverted();
cout << "Plate inverted: " << this->thresholdsInverted << endl;
}
@@ -438,7 +432,6 @@ void CharacterAnalysis::filterBetweenLines(Mat img, TextContours& textContours,
float maxDistance = textLines[i].lineHeight * MAX_DISTANCE_PERCENT_FROM_LINES;
cout << "Distances: " << absTopDistance << " : " << maxDistance << " - " << absBottomDistance << " : " << maxDistance << endl;
if (absTopDistance < maxDistance && absBottomDistance < maxDistance)
{
// It's ok, leave it as-is.