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

关于opencv版本的问题 #271

Open
BBuf opened this issue Feb 22, 2018 · 1 comment
Open

关于opencv版本的问题 #271

BBuf opened this issue Feb 22, 2018 · 1 comment

Comments

@BBuf
Copy link

@BBuf BBuf commented Feb 22, 2018

我用opencv3.4.0编译里代码,在执行批量测试功能报错,OpenCV Error: Parsing error (Missing or invalid SVM type) in read_params, file /home/just_sort/opencv-3.4.0/modules/ml/src/svm.cpp, line 2198
terminate called after throwing an instance of 'cv::Exception'
what(): /home/just_sort/opencv-3.4.0/modules/ml/src/svm.cpp:2198: error: (-212) Missing or invalid SVM type in function read_params
请问是opencv版本不兼容的问题吗

@dreamxgn
Copy link

@dreamxgn dreamxgn commented Mar 1, 2018

我用的opencv3.2版本,编译easypr 提示
1>d:\opencv3.2\opencv\build\include\opencv2\core.hpp(109): error C2011: “cv::Exception”:“class”类型重定义
1>d:\projects\c++\blog_winning-master\blog_winning-master\include\easypr\train\opencv2\core.hpp(109): note: 参见“cv::Exception”的声明
1>d:\opencv3.2\opencv\build\include\opencv2\core.hpp(148): error C2011: “cv::SortFlags”:“enum”类型重定义
1>d:\projects\c++\blog_winning-master\blog_winning-master\include\easypr\train\opencv2\core.hpp(148): note: 参见“cv::SortFlags”的声明
1>d:\opencv3.2\opencv\build\include\opencv2\core.hpp(165): error C2011: “cv::CovarFlags”:“enum”类型重定义
1>d:\projects\c++\blog_winning-master\blog_winning-master\include\easypr\train\opencv2\core.hpp(165): note: 参见“cv::CovarFlags”的声明
1>d:\opencv3.2\opencv\build\include\opencv2\core.hpp(201): error C2011: “cv::KmeansFlags”:“enum”类型重定义
1>d:\projects\c++\blog_winning-master\blog_winning-master\include\easypr\train\opencv2\core.hpp(201): note: 参见“cv::KmeansFlags”的声明
1>d:\opencv3.2\opencv\build\include\opencv2\core.hpp(214): error C2011: “cv::LineTypes”:“enum”类型重定义
1>d:\projects\c++\blog_winning-master\blog_winning-master\include\easypr\train\opencv2\core.hpp(214): note: 参见“cv::LineTypes”的声明
这是opencv版本问题嘛?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.