OpenCV face detector sample in Android Studio

user1137313 picture user1137313 · Mar 9, 2015 · Viewed 14k times · Source

I cannot make the sample (Facedetection) coming with the OpenCV4Android work in Android Studio.

Is there a tutorial for facedetection that would address the users of Android Studio? Because it does not work to import the Eclipse project that is attached to the library as sample. I am sure it's because of the NDK dependency, but I cannot seem to get it to work. I installed the NDK, added it to the Path, still no change.

Better yet, is there any way of avoiding the use of the NDK in a facedetection application?

I would appreciate any help in making this work in the Android Studio

Answer

Eduardo Gomez picture Eduardo Gomez · Dec 8, 2015

I've just uploaded to github a simple sample using OPENCV libraries. Everything is setup already to get it to run really quick. My AndroidStudio is 2.0 Preview 2 (released 5 days ago). Hope isn't too late or at least others may find it useful for quick troubleshooting during installation.

Best.