mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 14:20:50 +08:00
Added extra debug statement to char segmenter
This commit is contained in:
@@ -70,6 +70,13 @@ namespace alpr
|
|||||||
float height_to_width_ratio = pipeline_data->config->charHeightMM[lineidx] / pipeline_data->config->charWidthMM[lineidx];
|
float height_to_width_ratio = pipeline_data->config->charHeightMM[lineidx] / pipeline_data->config->charWidthMM[lineidx];
|
||||||
float avgCharWidth = avgCharHeight / height_to_width_ratio;
|
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]);
|
removeSmallContours(pipeline_data->thresholds, avgCharHeight, pipeline_data->textLines[lineidx]);
|
||||||
|
|
||||||
// Do the histogram analysis to figure out char regions
|
// Do the histogram analysis to figure out char regions
|
||||||
|
Reference in New Issue
Block a user