【error】OpenCV Error: Parsing error (Missing or invalid SVM type) in read_params, file modules/ml/src/svm.cpp


前言

移植代码到板子上出现小问题,其实非常简单,但是不一定能立即想到,故还是记录一下。好记性不如烂笔头~

错误

Vxworks上的error

0x21c411c0 (iRtp_imx6): RTP 0x2117b0e0 has been deleted due to signal 6.
OpenCV Error: Parsing error (Missing or invalid SVM type) in read_params, file modules/ml/src/svm.cpp, line 2198

imx6上的error

OpenCV Error: Parsing error (Missing or invalid SVM type) in read_params, file /usr/src/debug/opencv/3.1+gitAUTOINC+92387b1ef8-r0/git/modules/ml/src/svm.cpp, line 2122
terminate called after throwing an instance of 'cv::Exception'
  what():  /usr/src/debug/opencv/3.1+gitAUTOINC+92387b1ef8-r0/git/modules/ml/src/svm.cpp:2122: error: (-212) Missing or invalid SVM type in function read_params

Aborted

原因

之前在使用板子的过程中其实也遇到过这个问题,不过再次遇到的时候还是忘记了,在回到源码调试的过程中,才明白原因是缺少模型文件,也就是程序找不到模型文件。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM