First time here? Check out the FAQ!

Ask Your Question
1

How to create a new OpenCV4Android project using Eclipse

asked Aug 16 '12

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

Hi,

Can somebody give the steps to create a new opencv android project using eclipse (not steps to import the project). I have searched via internet about this. But available resources are describing how to import the opencv android samples using eclipse...

Preview: (hide)

3 answers

Sort by » oldest newest most voted
1

answered Oct 9 '12

karthi gravatar image
Preview: (hide)
1

answered Aug 16 '12

Daniil Osokin gravatar image

updated Aug 28 '12

Kirill Kornyakov gravatar image

Hi! You can create android project as usual, then import OpenCV library like described here: How to use OpenCV library project in your application. More common resource about OpenCV4Android is http://opencv.org/android.

Preview: (hide)
0

answered Aug 16 '12

Daniil Osokin gravatar image

Does your project has jni part? For details you can look at Practice: Create an Android application, which uses OpenCV. To verify tools installation you can select project properties from tutorial 3 or 4. They have that properties.

Preview: (hide)

Comments

I have checked the tutorial 3 or 4. When I import the tutorial 3 or 4, "C/C++ Build" and "C/C++ General" displayed in the project -> properties. But when I use these samples with my own android project these "C/C++ Build" and "C/C++ General" hasn't display. Can help me how to enable these "C/C++ Build" and "C/C++ General" in my own android project also. I created my project as "New -> project -> Android Application project". Is it right step to create the opencv android project? Thanks.

karthi gravatar imagekarthi (Aug 16 '12)edit

So what with jni in you app? Did you write an appropriate Android.mk and other steps as in link, I mentioned above? If your project doesn't declare jni (C++) part you would not get C/C++ properties.

Daniil Osokin gravatar imageDaniil Osokin (Aug 17 '12)edit

Question Tools

Stats

Asked: Aug 16 '12

Seen: 1,921 times

Last updated: Oct 09 '12