facerecognizer save() method

asked 2014-04-21 08:19:01 -0500

rainNight gravatar image

updated 2014-04-21 08:22:37 -0500

berak gravatar image

I miss a problem when I using the save() method in my face recognizer project. My code is:

    Ptr<FaceRecognizer> model = createEigenFaceRecognizer();
model->set("threshold",100.0);
model->train(images,labels);
model->save("/sdcard/Train_model.xml");

I can't open the file /sdcard/Train_model.xml in my project. I want to know whether the save method can create a new file. I hope that I can get your help,thanks My error isimage description

edit retag flag offensive close merge delete

Comments

did you ask for permision in your AndroidManifest.xml ?

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

berak gravatar imageberak ( 2014-04-21 08:22:10 -0500 )edit

Yes, I don't ask for permision. thank you!

rainNight gravatar imagerainNight ( 2014-04-21 21:16:55 -0500 )edit