Segmenting inside OCR code

This commit is contained in:
Matt Hill
2016-07-02 10:28:38 -04:00
parent b6469b015e
commit e3c88620b3
3 changed files with 6 additions and 7 deletions

View File

@@ -151,13 +151,10 @@ namespace alpr
}
}
}
void TesseractOcr::segment(PipelineData* pipeline_data) {
if (config->debugTiming)
{
timespec endTime;
getTimeMonotonic(&endTime);
cout << "OCR Time: " << diffclock(startTime, endTime) << "ms." << endl;
}
CharacterSegmenter segmenter(pipeline_data);
}
}

View File

@@ -50,6 +50,8 @@ namespace alpr
private:
void segment(PipelineData* pipeline_data);
tesseract::TessBaseAPI tesseract;
};

View File

@@ -26,7 +26,7 @@
#include "textcontours.h"
#include "textline.h"
#include "pipeline_data.h"
#include "segmentation/histogramhorizontal.h"
#include "ocr/segmentation/histogramhorizontal.h"
namespace alpr
{