【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

原因

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

posted on 2020-01-19 18:06  鹅要长大  阅读(1971)  评论(0编辑  收藏  举报

导航