Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E/cv::error(): OpenCV Error: Parsing error (Missing or invalid SVM type) #21

Open
kingjames92 opened this issue Nov 19, 2016 · 3 comments

Comments

@kingjames92
Copy link

已经安装好apk,刚打开就闪退,run记录上写着
E/cv::error(): OpenCV Error: Parsing error (Missing or invalid SVM type) in void cv::ml::SVMImpl::read_params(const cv::FileNode&), file /Volumes/Linux/builds/master_pack-android/opencv/modules/ml/src/svm.cpp, line 2122
求大神解释。。用windows平台和mac平台都显示这个错误信息。

@kingjames92
Copy link
Author

svm.xml文件就存在res/raw里。不知道是不是opencv的问题啊。

@flyingnn
Copy link

用新的1.5 的EasyPR,就出现这个问题,如何解决呢?

@flyingnn
Copy link

可以了,要改点代码,
PlateJudge::PlateJudge() {
//svm_ = ml::SVM::loadml::SVM(kDefaultSvmPath);
//svm_ = ml::SVM::loadml::SVM(kLBPSvmPath);
extractFeature = getLBPFeatures;
}

void PlateJudge::LoadModel(std::string path) {
/*
if (path != std::string(kDefaultSvmPath)) {

  if (!svm_->empty())
    svm_->clear();

  svm_ = ml::SVM::load<ml::SVM>(path);
}
*/
svm_ = ml::SVM::load<ml::SVM>(path);

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants