diff --git a/src/misc_utilities/classifychars.cpp b/src/misc_utilities/classifychars.cpp index 08d0fc1..c98c235 100644 --- a/src/misc_utilities/classifychars.cpp +++ b/src/misc_utilities/classifychars.cpp @@ -159,9 +159,6 @@ int main( int argc, const char** argv ) if (pipeline_data.plate_inverted) 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->postProcessor.analyze(statecodestr, 25); diff --git a/src/openalpr/licenseplatecandidate.cpp b/src/openalpr/licenseplatecandidate.cpp index ac68680..71b00a7 100644 --- a/src/openalpr/licenseplatecandidate.cpp +++ b/src/openalpr/licenseplatecandidate.cpp @@ -38,13 +38,11 @@ namespace alpr LicensePlateCandidate::~LicensePlateCandidate() { - delete charSegmenter; } // Must delete this pointer in parent class void LicensePlateCandidate::recognize() { - charSegmenter = NULL; pipeline_data->isMultiline = config->multiline; @@ -136,7 +134,6 @@ namespace alpr cout << "deskew Time: " << diffclock(startTime, endTime) << "ms." << endl; } - charSegmenter = new CharacterSegmenter(pipeline_data); } diff --git a/src/openalpr/licenseplatecandidate.h b/src/openalpr/licenseplatecandidate.h index bce39fb..2a48193 100644 --- a/src/openalpr/licenseplatecandidate.h +++ b/src/openalpr/licenseplatecandidate.h @@ -32,7 +32,6 @@ #include "edges/platelines.h" #include "transformation.h" #include "textdetection/characteranalysis.h" -#include "segmentation/charactersegmenter.h" #include "edges/platecorners.h" #include "config.h" #include "pipeline_data.h" @@ -55,7 +54,6 @@ namespace alpr PipelineData* pipeline_data; Config* config; - CharacterSegmenter* charSegmenter; cv::Mat filterByCharacterHue(std::vector > charRegionContours); std::vector findPlateCorners(cv::Mat inputImage, PlateLines plateLines, CharacterAnalysis textAnalysis); // top-left, top-right, bottom-right, bottom-left