From where OpenCV samples load libopencv_java.so ?

asked 2015-12-15 05:01:03 -0600

My User gravatar image

Hi,

I would like to know from where or how did OpenCV load libopencv_java.so file to the device?

The sample project(Face Detection) of OpenCV work fine, but If I try to load OPENCV_VERSION_2_4_3, it's falied to load the libopencv_java file, and the following error was shown:

java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/org.opencv.engine-1/lib/arm/libopencv_java.so" is 32-bit instead of 64-bit

Why is my libopencv_java is different if I use the same sdk?

edit retag flag offensive close merge delete

Comments

There are no 64-bit android libraries for OpenCV 2.4.x.

mshabunin gravatar imagemshabunin ( 2015-12-18 10:42:43 -0600 )edit

So, what should I do?

My User gravatar imageMy User ( 2015-12-19 03:38:47 -0600 )edit

why OpenCV application that came with sdk 2.4.9 worked and mine not? it trying to load the same library

My User gravatar imageMy User ( 2015-12-20 01:55:05 -0600 )edit

Try to build your application for 32-bit platform and run it on 64-bit device.

mshabunin gravatar imagemshabunin ( 2015-12-21 03:10:54 -0600 )edit

How can I do that?

My User gravatar imageMy User ( 2015-12-21 03:17:43 -0600 )edit

Please check this issue and the discussion: https://github.com/Itseez/opencv/issu... Maybe it can help

mshabunin gravatar imagemshabunin ( 2015-12-25 02:38:36 -0600 )edit

Sorry, but I can't do what they did, cause I can't work with OpenCV 3.0, the reason is that there is no implementation to the constant 'Imgproc.BORDER_REPLICATE' and as I see I don't need to work with this version because the sample projects works fine with version 2.4. am I right?

My User gravatar imageMy User ( 2016-01-03 04:59:53 -0600 )edit

But there is Core.BORDER_REPLICATE constant available: http://docs.opencv.org/java/3.1.0/org...

mshabunin gravatar imagemshabunin ( 2016-01-17 04:58:40 -0600 )edit

Did you try to use it?

My User gravatar imageMy User ( 2016-01-17 05:22:27 -0600 )edit