Resolves issue #53

This commit is contained in:
Matt Hill
2014-10-23 17:29:07 -04:00
parent 60cd9e8124
commit 08d1005520
3 changed files with 8 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ void OCR::performOCR(PipelineData* pipeline_data)
if(symbol != 0 && pointsize >= config->ocrMinFontSize)
{
postProcessor->addLetter(*symbol, j, conf);
postProcessor->addLetter(string(symbol), j, conf);
if (this->config->debugOcr)
printf("charpos%d: threshold %d: symbol %s, conf: %f font: %s (index %d) size %dpx", j, i, symbol, conf, fontName, fontindex, pointsize);
@@ -103,7 +103,7 @@ void OCR::performOCR(PipelineData* pipeline_data)
{
const char* choice = ci.GetUTF8Text();
postProcessor->addLetter(*choice, j, ci.Confidence());
postProcessor->addLetter(string(choice), j, ci.Confidence());
//letterScores.addScore(*choice, j, ci.Confidence() - MIN_CONFIDENCE);
if (this->config->debugOcr)