From 9801b67f61376be41c71ce79481a1eeb0651e2bc Mon Sep 17 00:00:00 2001 From: Micooz Date: Mon, 17 Aug 2015 14:44:38 +0800 Subject: [PATCH] Removed unnecessary header including. --- src/core/chars_identify.cpp | 3 +-- src/core/core_func.cpp | 1 - src/train/ann_train.cpp | 10 +++++----- src/train/svm_train.cpp | 1 - 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/core/chars_identify.cpp b/src/core/chars_identify.cpp index 5a9db51..c431c98 100644 --- a/src/core/chars_identify.cpp +++ b/src/core/chars_identify.cpp @@ -1,7 +1,6 @@ #include "easypr/core/chars_identify.h" -#include "easypr/core/core_func.h" -#include "easypr/train/ann_train.h" #include "easypr/config.h" +#include "easypr/core/core_func.h" namespace easypr { diff --git a/src/core/core_func.cpp b/src/core/core_func.cpp index 1ea7a37..ae0f967 100644 --- a/src/core/core_func.cpp +++ b/src/core/core_func.cpp @@ -3,7 +3,6 @@ // 这个部分中的函数轻易不要改动 #include "easypr/core/core_func.h" -#include using namespace cv; diff --git a/src/train/ann_train.cpp b/src/train/ann_train.cpp index e434d31..7814c97 100644 --- a/src/train/ann_train.cpp +++ b/src/train/ann_train.cpp @@ -1,8 +1,8 @@ #include "easypr/train/ann_train.h" -#include "easypr/core/core_func.h" +#include "easypr/config.h" #include "easypr/core/chars_identify.h" +#include "easypr/core/core_func.h" #include "easypr/util/util.h" -#include "easypr/config.h" namespace easypr { @@ -68,11 +68,11 @@ void AnnTrain::test() { if (error_files.size() >= 10) { end -= static_cast(error_files.size() * (1 - 0.1)); } - for (auto i = error_files.begin(); i != end; ++i) { - auto kv = *i; + for (auto k = error_files.begin(); k != end; ++k) { + auto kv = *k; error_string.append(" ").append(kv.first).append(": ").append( kv.second); - if (i != end - 1) { + if (k != end - 1) { error_string.append(",\n"); } else { error_string.append("\n ..."); diff --git a/src/train/svm_train.cpp b/src/train/svm_train.cpp index a83d31f..dd0a3b8 100644 --- a/src/train/svm_train.cpp +++ b/src/train/svm_train.cpp @@ -1,5 +1,4 @@ #include "easypr/train/svm_train.h" -#include "easypr/config.h" #include "easypr/core/feature.h" #include "easypr/util/util.h"