Ask Your Question

Revision history [back]

Using Contrib modules with OpenCV4Android (OpenCV3.0.0)

I'm trying to write JNI wrappers for the OpenCV3.0.0 FaceRecognizer modules but I'm having a bit of trouble because the "sdk/native/jni/include/opencv2" folder does not contain any reference to the contrib code. I realise that the contrib modules were separated from the rest of the modules with the OpenCV3.0.0 update. I have tried building the whole repository from source (opencv + contrib modules) and copying the opencv2 folder across from this build but when I do that I get the following error when I build my app in eclipse:

"error: undefined reference to 'cv::face::createFisherFaceRecognizer(int, double)'"

My basic question is: What is the correct procedure for accessing contrib modules through JNI in OpenCV4Android (OpenCV3.0.0)?

Any help is greatly appreciated!

Thanks!