From a10e65631cb41a59f1ccee3f58160b73bf5c4eb1 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 19 Oct 2014 20:50:40 -0400 Subject: [PATCH] Removed unused code file --- src/openalpr/CMakeLists.txt | 1 - .../textdetection/characteranalysis2l.cpp | 60 ------------------- .../textdetection/characteranalysis2l.h | 38 ------------ 3 files changed, 99 deletions(-) delete mode 100644 src/openalpr/textdetection/characteranalysis2l.cpp delete mode 100644 src/openalpr/textdetection/characteranalysis2l.h diff --git a/src/openalpr/CMakeLists.txt b/src/openalpr/CMakeLists.txt index 2cdaaa4..ba46e8d 100644 --- a/src/openalpr/CMakeLists.txt +++ b/src/openalpr/CMakeLists.txt @@ -23,7 +23,6 @@ set(lpr_source_files platecorners.cpp colorfilter.cpp textdetection/characteranalysis.cpp - textdetection/characteranalysis2l.cpp textdetection/platemask.cpp textdetection/textcontours.cpp textdetection/textline.cpp diff --git a/src/openalpr/textdetection/characteranalysis2l.cpp b/src/openalpr/textdetection/characteranalysis2l.cpp deleted file mode 100644 index 6bfc957..0000000 --- a/src/openalpr/textdetection/characteranalysis2l.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (c) 2014 New Designs Unlimited, LLC - * Opensource Automated License Plate Recognition [http://www.openalpr.com] - * - * This file is part of OpenAlpr. - * - * OpenAlpr is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License - * version 3 as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . -*/ - -#include "characteranalysis2l.h" - -using namespace cv; -using namespace std; - -CharacterAnalysis2L::CharacterAnalysis2L(PipelineData* pipeline_data) { - this->pipeline_data = pipeline_data; -} - - -CharacterAnalysis2L::~CharacterAnalysis2L() { -} - -void CharacterAnalysis2L::analyze() { - - pipeline_data->clearThresholds(); - pipeline_data->thresholds = produceThresholds(pipeline_data->crop_gray, pipeline_data->config); - - std::vector > > allContours; - std::vector > allHierarchy; - - timespec startTime; - getTime(&startTime); - - for (uint i = 0; i < pipeline_data->thresholds.size(); i++) - { - vector > contours; - vector hierarchy; - - Mat tempThreshold(pipeline_data->thresholds[i].size(), CV_8U); - pipeline_data->thresholds[i].copyTo(tempThreshold); - findContours(tempThreshold, - contours, // a vector of contours - hierarchy, - CV_RETR_TREE, // retrieve all contours - CV_CHAIN_APPROX_SIMPLE ); // all pixels of each contours - - allContours.push_back(contours); - allHierarchy.push_back(hierarchy); - } -} diff --git a/src/openalpr/textdetection/characteranalysis2l.h b/src/openalpr/textdetection/characteranalysis2l.h deleted file mode 100644 index 9efdb26..0000000 --- a/src/openalpr/textdetection/characteranalysis2l.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2014 New Designs Unlimited, LLC - * Opensource Automated License Plate Recognition [http://www.openalpr.com] - * - * This file is part of OpenAlpr. - * - * OpenAlpr is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License - * version 3 as published by the Free Software Foundation - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . -*/ - -#ifndef OPENALPR_CHARACTERANALYSIS2L_H -#define OPENALPR_CHARACTERANALYSIS2L_H - -#include "utility.h" -#include "config.h" -#include "pipeline_data.h" - -class CharacterAnalysis2L { -public: - CharacterAnalysis2L(PipelineData* pipeline_data); - virtual ~CharacterAnalysis2L(); -private: - - PipelineData* pipeline_data; - void analyze(); -}; - -#endif /* OPENALPR_CHARACTERANALYSIS2L_H */ -