Removed unused references to segmenter

This commit is contained in:
Matt Hill
2016-07-02 10:29:44 -04:00
parent e4acb17c52
commit bd41ab0cfc
3 changed files with 0 additions and 8 deletions

View File

@@ -159,9 +159,6 @@ int main( int argc, const char** argv )
if (pipeline_data.plate_inverted) if (pipeline_data.plate_inverted)
bitwise_not(pipeline_data.crop_gray, pipeline_data.crop_gray); bitwise_not(pipeline_data.crop_gray, pipeline_data.crop_gray);
CharacterSegmenter charSegmenter(&pipeline_data);
//ocr.cleanCharRegions(charSegmenter.thresholds, charSegmenter.characters);
ocr->performOCR(&pipeline_data); ocr->performOCR(&pipeline_data);
ocr->postProcessor.analyze(statecodestr, 25); ocr->postProcessor.analyze(statecodestr, 25);

View File

@@ -38,13 +38,11 @@ namespace alpr
LicensePlateCandidate::~LicensePlateCandidate() LicensePlateCandidate::~LicensePlateCandidate()
{ {
delete charSegmenter;
} }
// Must delete this pointer in parent class // Must delete this pointer in parent class
void LicensePlateCandidate::recognize() void LicensePlateCandidate::recognize()
{ {
charSegmenter = NULL;
pipeline_data->isMultiline = config->multiline; pipeline_data->isMultiline = config->multiline;
@@ -136,7 +134,6 @@ namespace alpr
cout << "deskew Time: " << diffclock(startTime, endTime) << "ms." << endl; cout << "deskew Time: " << diffclock(startTime, endTime) << "ms." << endl;
} }
charSegmenter = new CharacterSegmenter(pipeline_data);
} }

View File

@@ -32,7 +32,6 @@
#include "edges/platelines.h" #include "edges/platelines.h"
#include "transformation.h" #include "transformation.h"
#include "textdetection/characteranalysis.h" #include "textdetection/characteranalysis.h"
#include "segmentation/charactersegmenter.h"
#include "edges/platecorners.h" #include "edges/platecorners.h"
#include "config.h" #include "config.h"
#include "pipeline_data.h" #include "pipeline_data.h"
@@ -55,7 +54,6 @@ namespace alpr
PipelineData* pipeline_data; PipelineData* pipeline_data;
Config* config; Config* config;
CharacterSegmenter* charSegmenter;
cv::Mat filterByCharacterHue(std::vector<std::vector<cv::Point> > charRegionContours); cv::Mat filterByCharacterHue(std::vector<std::vector<cv::Point> > charRegionContours);
std::vector<cv::Point> findPlateCorners(cv::Mat inputImage, PlateLines plateLines, CharacterAnalysis textAnalysis); // top-left, top-right, bottom-right, bottom-left std::vector<cv::Point> findPlateCorners(cv::Mat inputImage, PlateLines plateLines, CharacterAnalysis textAnalysis); // top-left, top-right, bottom-right, bottom-left