Ask Your Question
1

How to create a new OpenCV4Android project using Eclipse

asked 2012-08-16 01:14:39 -0600

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...

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2012-10-09 05:23:08 -0600

karthi gravatar image
edit flag offensive delete link more
1

answered 2012-08-16 02:00:04 -0600

Daniil Osokin gravatar image

updated 2012-08-28 08:27:15 -0600

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.

edit flag offensive delete link more
0

answered 2012-08-16 06:53:20 -0600

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.

edit flag offensive delete link more

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 ( 2012-08-16 08:14:28 -0600 )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 ( 2012-08-17 01:28:15 -0600 )edit

Question Tools

Stats

Asked: 2012-08-16 01:14:39 -0600

Seen: 1,916 times

Last updated: Oct 09 '12