Ask Your Question

uiqbal's profile - activity

2013-06-14 06:03:50 -0600 received badge  Nice Question (source)
2013-06-13 07:15:16 -0600 received badge  Student (source)
2013-06-13 05:21:37 -0600 received badge  Editor (source)
2013-06-13 05:19:03 -0600 asked a question 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