faceRecognizer on opencv4android

asked 2015-06-23 08:43:26 -0600

nanju gravatar image

updated 2015-06-25 06:39:38 -0600

hello everybody!! first of all, I want to apologize if i break some rules for this is my first post here so i don't know yet all the rules.

I am a newbie with openCV! I am writing an application of face recognition on android using opencv. I learned a lot thanks to questions asked here and answers given to them. I' ve been able to progress on the development of my application. while I was developing I tryed to use NDK and all the JNI stuffs but I was not able generate the header file for my cpp file with the command line so I decided to do my best to avoid the usage of JNI and NDK. Just using OpenCV4Android and thanks to answers given here I have been able to write an app that can detect faces, preprocess them with the equalizeHist's stuffs and generate a csv file containing the address and the label of each saved face. My generated csv file contain lines like these:

dir/ect/ory/name.jpg;label

dir/ect/ory/name.jpg;label

dir/ect/ory/name.jpg;label ...

the app also generate and update two map objects that help me to access to names or directories of the detected faces by the usage of the tags. now here comes the problem: I can't use NDK (because the commands lines aren't working as they are supposed to, (note: I am using windows 7))and i don't know why. The second problem is that am not used to c++. So i was wondering if someone can help me by indicate me another clear way to process faceRecognizer. I've read some post and am not interested on using javaCV. it would be great if someone can show me how to modify the source code in c++ shown here so that i can use data i've been able to generate( csv file and equalized image). Its a bit complicated for me cose I must finish it in two days

I saw that many have asked almost similar questions, so please don't be mad at me. :-) Regards and anticipated thanks.

sorry I am updating to tell you guys that i've found why the ndk tools was not working. it was because i used the "/" separator like in linux instead of "\". that problem is solved but know while am trying to write a native methode using Mat parameters, the console answers me that:

Error: class org.opencv.core.Mat could not be found

S.O.S please how can I pass a mat parameter to a native method??

edit retag flag offensive close merge delete