Loading a saved .xml file in android

asked 2014-05-21 00:30:07 -0600

황인학 gravatar image

updated 2014-05-21 05:03:09 -0600

I've saved the model, mean and W in .xml in PC and load these files in my app how to load these file? W vector is 65536*5 size

///////////////////////// this is code to load Mat data from android image description

the code is too slow....... so my app is stop

edit retag flag offensive close merge delete

Comments

what kind of model ? where did you save it ?

berak gravatar imageberak ( 2014-05-21 01:23:53 -0600 )edit

@berak svm model and save in my app i had sovled this problem but it's too slow so my app freezing

황인학 gravatar image황인학 ( 2014-05-21 02:49:45 -0600 )edit
1

ok. i see. yes, that looks slow ;)

doing anything with pixels in the java api is a plain PITA.

what if you svm.load() the xml instead ?

berak gravatar imageberak ( 2014-05-21 06:03:20 -0600 )edit

@berak before create svm model i have to use pca so load mean vector and w vector xml files save these Mat var

황인학 gravatar image황인학 ( 2014-05-21 21:57:36 -0600 )edit