Ask Your Question

Zahraa11's profile - activity

2016-12-06 10:26:32 -0600 commented question Saving or Loading model in SVM

here is my code :

CvSVM svm= new CvSVM();
svm.train(trainData, sampleIdx);
String model= String.valueOf(svm);// i changed the svm object to string because save() accept only a string object
svm.save(model);

here is the error :

12-06 19:25:17.488 2712-2712/? E/cv::error(): OpenCV Error: Unspecified error (Could not open the file storage. Check the path and permissions) in CvStatModel::save, file /home/reports/ci/slave_desktop/50-SDK/opencv/modules/ml/src/inner_functions.cpp, line 71

**line 71 = svm.save(model);**
2016-12-06 10:26:17 -0600 answered a question Saving or Loading model in SVM

here is my code :

CvSVM svm= new CvSVM(); svm.train(trainData, sampleIdx); String model= String.valueOf(svm);// i changed the svm object to string because save() accept only a string object svm.save(model);

here is the error : 12-06 19:25:17.488 2712-2712/? E/cv::error(): OpenCV Error: Unspecified error (Could not open the file storage. Check the path and permissions) in CvStatModel::save, file /home/reports/ci/slave_desktop/50-SDK/opencv/modules/ml/src/inner_functions.cpp, line 71

line 71 = svm.save(model);

2016-11-26 10:52:15 -0600 commented question Saving or Loading model in SVM

version 2.4.9

2016-11-26 07:04:26 -0600 asked a question Saving or Loading model in SVM

hello I am using SVM to train my project. I am facing problem with saving the model and use (load) it again in java (android). can anyone give me suggestions please.

2016-11-26 06:57:25 -0600 commented question how can i find my model of KNN

how can i save or load model in SVM

2016-04-27 14:52:53 -0600 received badge  Student (source)
2016-04-25 05:28:51 -0600 commented question how can i find my model of KNN

is there any other ways?

2016-04-25 05:28:35 -0600 commented question how can i find my model of KNN

is there any other way?

2016-04-25 04:51:26 -0600 asked a question how can i find my model of KNN

I am a new in Opencv I used Nearest of Opencv to train my app (android app) to detect user activities I already trained my data but unfortunately i couldn't find the generated model of the algorithm For that, I forced to train my code each time I start the app I think it has to be model that I can use it whenever I want but how can I find it?