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
hi uiqbal - sorry i do not know to fix ur problem. but can you tell me how did you save the train model in a xml file. i am searching for a way to save the train model in a xml file, but still couldnt do that. can you post that piece of code here plz. thank you.