mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 13:16:49 +08:00
Removed unused references to segmenter
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
||||
|
||||
}
|
||||
|
@@ -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<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
|
||||
|
Reference in New Issue
Block a user