mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 02:32:45 +08:00
Segmenting inside OCR code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -50,6 +50,8 @@ namespace alpr
|
||||
|
||||
private:
|
||||
|
||||
void segment(PipelineData* pipeline_data);
|
||||
|
||||
tesseract::TessBaseAPI tesseract;
|
||||
|
||||
};
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user