【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