* change CMakeLists.txt .

v1.6alpha
liuruoze 10 years ago
parent 649a31dce7
commit df607b82b8

@ -27,7 +27,6 @@ set(SOURCE_FILES
src/core/chars_recognise.cpp
src/core/chars_segment.cpp
src/core/feature.cpp
src/core/plate.cpp
src/core/plate_detect.cpp
src/core/plate_judge.cpp
src/core/plate_locate.cpp
@ -41,6 +40,9 @@ set(SOURCE_FILES
src/util/util.cpp
src/util/program_options.cpp
src/util/kv.cpp
src/third/erfilter.cpp
src/third/helper.cpp
src/third/lbp.cpp
)
add_library(easypr STATIC ${SOURCE_FILES})

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -14,7 +14,7 @@ namespace easypr {
PlateJudge::PlateJudge() {
svm_ = ml::SVM::load<ml::SVM>(kDefaultSvmPath);
extractFeature = getHistogramFeatures;
extractFeature = getLBPFeatures;
}
void PlateJudge::LoadModel(std::string path) {

@ -95,8 +95,8 @@ namespace easypr {
// 设置要处理的一张图片中最多有多少车牌
pr.setMaxPlates(4);
pr.setDetectType(PR_DETECT_COLOR | PR_DETECT_SOBEL);
//pr.setDetectType(PR_DETECT_CMSER);
//pr.setDetectType(PR_DETECT_COLOR | PR_DETECT_SOBEL);
pr.setDetectType(PR_DETECT_CMSER);
//CPlateDetect pd;
//pd.setDetectType(PR_DETECT_CMSER);

@ -111,8 +111,8 @@ int test_plate_recognize() {
pr.setLifemode(true);
pr.setDebug(true);
pr.setMaxPlates(4);
pr.setDetectType(PR_DETECT_COLOR | PR_DETECT_SOBEL);
//pr.setDetectType(easypr::PR_DETECT_CMSER);
//pr.setDetectType(PR_DETECT_COLOR | PR_DETECT_SOBEL);
pr.setDetectType(easypr::PR_DETECT_CMSER);
//vector<string> plateVec;
vector<CPlate> plateVec;

Loading…
Cancel
Save