Added extra debug statement to char segmenter

This commit is contained in:
Matt Hill
2015-09-24 22:23:33 -04:00
parent dc6b35d2a6
commit 91d2f32f96

View File

@@ -70,6 +70,13 @@ namespace alpr
float height_to_width_ratio = pipeline_data->config->charHeightMM[lineidx] / pipeline_data->config->charWidthMM[lineidx];
float avgCharWidth = avgCharHeight / height_to_width_ratio;
if (config->debugCharSegmenter)
{
cout << "LINE " << lineidx << ": avgCharHeight: " << avgCharHeight << " - height_to_width_ratio: " << height_to_width_ratio << endl;
cout << "LINE " << lineidx << ": avgCharWidth: " << avgCharWidth << endl;
}
removeSmallContours(pipeline_data->thresholds, avgCharHeight, pipeline_data->textLines[lineidx]);
// Do the histogram analysis to figure out char regions