I'm trying to use the opencv contrib modules in android. I compiled the project and got the jar file, which I imported on my android project.
The problem is that when I try to instantiate the LBPHFaceRecognizer with the line LBPHFaceRecognizer.create()
the program crashes and error says
No implementation found for long org.opencv.face.LBPHFaceRecognizer.create_0
Googling I found that I hadn't built the .so for the opencv_contrib modules. Following the idea from this blog I built all the modules using make -j4
, and in the lib
folder I got many .so files including libopencv_java340.so
and libopencv_face.so
(the one I need) and many more.
Which one should I add to the ndk build path? At the moment I have the configuration as in here. And the one I built is for armeabi-v7a
, same as what my phone supports, but still says the same thing.
Anyone has been able to add opencv contrib modules in android?