Ask Your Question
0

Android OpenCv lib are missing

asked 2013-10-13 23:15:53 -0600

lobi gravatar image

updated 2013-10-14 08:05:32 -0600

Hello,

I tried to import sample android project into Eclipse. But I get an error. All android lib are missing

import org.opencv.android.BaseLoaderCallback;
import org.opencv.android.LoaderCallbackInterface;
import org.opencv.android.OpenCVLoader;
import org.opencv.android.CameraBridgeViewBase;
import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener;
import org.opencv.android.JavaCameraView;

Where can I find this lib? I can run OpenCv Java project, but I don't know why android lib are missing.

Can some one help me.

Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-14 00:37:17 -0600

Moster gravatar image

You are for sure missing the android sdk, ndk and the adt plugin for eclipse: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/dev_with_OCV_on_Android.html

edit flag offensive delete link more

Comments

I have all this install. I can build simple android project without OpenCv lib. In which folder it is andorid lib are?

After installation of OpenCv 2.4.6.1, thete is no andorid lib in opencv-246.jar.

lobi gravatar imagelobi ( 2013-10-14 02:43:34 -0600 )edit

You probably didnt download any android api yet. Go to your android sdk folder. Then go into tools and start the android sdk manager, on linux just with ./android. On windows it should be an exe. With this you can download the correct android api level (18 = android 4.3, 17 = android 4.2 and so on). Make sure you also have build and platform tools installed. Then you should also be able to use android examples.

Moster gravatar imageMoster ( 2013-10-14 04:00:42 -0600 )edit

I downloaded all android API

problem is that android OpenCv lib are missing. there is no problem with android, but with OpenCv lib. There is no lib in opencv-246.jar after build.

lobi gravatar imagelobi ( 2013-10-14 08:03:33 -0600 )edit

Did you add the opencv library to your workspace? Did you add the library to your project in the project settings? http://imgur.com/a/cKEN0

Moster gravatar imageMoster ( 2013-10-14 08:44:25 -0600 )edit

Yes, I tried. But there is no library in opencv-2.4.6.1 in sampels (not in others folders). So I can add it. This is the problem. I relay need help.

I folow all instructions from official tutorials

lobi gravatar imagelobi ( 2013-10-14 09:45:11 -0600 )edit

The library is in opencv-android-sdk/sdk/java. You need to import the library as a project.

Moster gravatar imageMoster ( 2013-10-14 09:54:17 -0600 )edit

*CAN'T add it.

lobi gravatar imagelobi ( 2013-10-14 09:57:09 -0600 )edit

Any error?

Moster gravatar imageMoster ( 2013-10-14 09:58:16 -0600 )edit

there is no opencv-android-sdk/sdk/java in opencv-2.4.6.1

lobi gravatar imagelobi ( 2013-10-14 09:59:54 -0600 )edit
1

It seems like you downloaded the wrong opencv sdk. Here is the one for android: http://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.6/OpenCV-2.4.6-android-sdk-r2.zip/download

Moster gravatar imageMoster ( 2013-10-14 10:04:13 -0600 )edit

Question Tools

Stats

Asked: 2013-10-13 23:15:53 -0600

Seen: 32,699 times

Last updated: Oct 14 '13