OpenCV 3.1.0: Save and load trained SVMs

那年仲夏 提交于 2019-12-03 22:45:15

After searching for a while I found out that if I use a linear kernel there is no problem at all. So then I can save and load the SVM and the prediction is correct. So I started to search for a reason why it works for the linear kernel and not for the other kernels.

The answer is that there is a bug in OpenCV 3.1 according to issue #5054 on Github. I tried the proposed solution but it still didn't work. Eventually I donwloaded OpenCV 2.4 and now everything works well.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!