SVM Training Parameters to OpenCV [closed]

asked 2014-08-26 09:00:47 -0500

I am creating an Android application that will use OpenCV, specifically its SVM feature. I have a prototype of my application in MATLAB wherein I have already pre-processed multiple images and saved the output values in a csv file and had weka train my SVM classifier. I am porting my code now to Android and I seem to have hit a road bump. Do I have to train the classifier within my OpenCV code? Or can I just input the model parameters and have it predict my outputs? (I take a picture and SVM will automatically classify what kind of image is it.)

I'm reluctant to perform training on my Android device since doing so would be time consuming and I have a deadline to meet. So is it possible to just enter the model parameters in my Android application and it will predict the output? Or if ever I do retrain my classifier in the device, can I use the CSV file I have previously used?

Thanks!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2014-08-28 04:13:49.117165

Comments

1

svm save and svm load is all you need! Just call them on your svm object!

StevenPuttemans gravatar imageStevenPuttemans ( 2014-08-26 09:45:01 -0500 )edit
1

Thanks! Just saw the documentation the other day. Really helpful!

joshua_jorel_lee gravatar imagejoshua_jorel_lee ( 2014-08-28 01:07:27 -0500 )edit