Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OK, I found my mistake and solved the issue. I was building libopencv_world.so as I didn't have the CMAKE option build_opencv_java.

Going through the output of CMAKE Configure, I noticed that CMAKE wasn't picking up ANT. So I added the path to ANT by specifying ANT_EXECUTABLE in CMAKE. This gave me the options BUILD_FAT_JAVA_LIB and BUILD_OPENCV_JAVA. I made sure these were selected and also deselected BUILD_OPENCV_WORLD and BUILD_SHARED_LIBS.

I also changed the parallelization framework from OpenMP to TBB. All is fine now and performance is just as good as the official OpenCV releases for Android both on armeabi-v7a and arm64-v8a.