Ask Your Question
1

Need help including FaceRecognizer with Android via NDK

asked 2013-03-05 16:08:06 -0600

jeffrey296 gravatar image

Hello, first time poster here so sorry if I break any formatting rules.

So I'm developing a facial recognition app on Android using OpenCV For Android. I'm perfectly fine with using NDK to include any essential native code, however, I'm having trouble deciphering the syntax to do so regarding FaceRecognizer. The tutorials on the documentation/API pages don't translate to NDK code and as I am incredibly unfamiliar with using NDK, I'm having trouble converting it myself.

If anybody could provide a quick example or head me in the right direction for using FaceRecognizer with Android, I'd appreciate it.

Thanks all, Jeff

Note: I am NOT using JavaCV, so while I know tutorials exist for including FaceRecognizer in Java, these do not apply. I am instead looking for a way to include FaceRecognizer in Android when the environment is set up using the OpenCV For Android tutorial.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-06 06:43:30 -0600

updated 2013-03-06 06:49:12 -0600

I once saw a project on github, which worked on something similar. I can't quote on the project status, nor did I try it myself. Nevertheless I think you can get some ideas from the JNI part and its corresponding Makefiles:

I think it is important to link against some STL, because as far as I remember (with my limited Android development skills) the NDK doesn't support templates out of the box. Chances are good the OpenCV Makefiles already include them, but I would check it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-05 16:08:06 -0600

Seen: 1,269 times

Last updated: Mar 06 '13