Google Groups

Re: [OpenCV4Android] Re: How to use openCV with Android?


Shervin Emami May 20, 2012 12:49 AM
Posted in group: OpenCV4Android
Make sure you right-click on OpenCV and your app projects and click on
Refresh, sometimes Eclipse does not refresh itself properly. If the
OpenCV-2.4.0 Java project is in your Eclipse workspace and it builds
fine, but your apps give errors, then they aren't referencing the
OpenCV project correctly.

eg: Right-click on one of your projects in Package Explorer, click on
Properties, click on Android, and look in the Libraries section. It
should show a green tick to say it is linked to the OpenCV project,
but if it is a red cross then "Remove" it and click on "Add..." and
double-click on the OpenCV library. Now it should work.

Cheers,
Shervin Emami.
http://www.shervinemami.info/openCV.html


On Sun, May 20, 2012 at 12:35 AM, Yau Mun <yaumu...@gmail.com> wrote:
> Hi, i get an exclamation mark on my apps when i import the openCV library.
> Any solution?
>
> On Sunday, May 20, 2012 3:00:58 PM UTC+8, Shervin Emami wrote:
>>
>> Start with the tutorial at
>> "http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package.html"
>> that explains how to start using OpenCV for Android using Java. OpenCV comes
>> with various Android sample projects, which you should also look at once
>> you've followed the tutorial above (but ignore the sample projects that say
>> "(Advanced)"). Then if you want to use OpenCV on Android using C/C++ instead
>> of Java, then follow the NDK tutorial
>> "http://opencv.itseez.com/doc/tutorials/introduction/android_binary_package/android_binary_package_using_with_NDK.html#android-binary-package-with-ndk"
>> and look at the OpenCV Android sample projects that say "(Advanced)" because
>> they use C with Java.
>>
>> Cheers,
>> Shervin.
>>
>>
>> On Saturday, May 19, 2012 8:43:35 PM UTC-7, Yau Mun wrote:
>>>
>>> Hi all, I'm new in openCV and I currently doing an project about image
>>> processing with android and need to use openCV. The problem is I don't know
>>> what is the next step after i download the openCV version 2.4.
>>>
>>> Can anyone guide me on what I need to do?
>>>
>>> Thanks.