Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

segmentation fault with CvSVM predict

Hello Everyone,

I have trained a SVM classifier with RBF kernel. Once the training is complete, I am saving it as xml file. I need to add some other details in the same .xml file as well. So, I am reading it again and using opencv FileStorage to update xml file accordingly. All this work is done perfectly but when I am loading the classifier again and trying to predict a query sample the program crashes and gives a segmentation fault. Segmentation fault arises exactly at the time of prediction.

Can anyone please guide me what could be the reason behind this?? or is there any efficient way to debug this problem??

Thanks, Umar

segmentation fault with CvSVM predict

Hello Everyone,

I have trained a SVM classifier with RBF kernel. Once the training is complete, I am saving it as xml file. I need to add some other details in the same .xml file as well. So, I am reading it again and using opencv FileStorage to update xml file accordingly. All this work is done perfectly but when I am loading the classifier again and trying to predict a query sample the program crashes and gives a segmentation fault. Segmentation fault arises exactly at the time of prediction.

Can anyone please guide me what could be the reason behind this?? or is there any efficient way to debug this problem??

I have added extra information (at the end of xml file) as follows:

</my_svm> <combinationcount>1</combinationcount> <rtype_0>0</rtype_0> <pixvaltype0>3</pixvaltype0> <normtype0>2</normtype0> <aggtype0>2</aggtype0> <bestaccuracy>8.2044540405273438e+01</bestaccuracy> </opencv_storage>

Thanks, Umar