Ask Your Question

Revision history [back]

Problem in creating hello project with OpenCV for Android

Hi,

I'm struggling with OpenCV for Android for a week now. I googled a lot but can't find any solution.

So first, I'm a newbie to OpenCV, I tried to install OpenCV for Android following the instruction on OpenCV (http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html). I've tried both the manual way and the Tegra Android Development Pack (have both installations now). I can import OpenCV library and fix those errors with OpenCV sample projects: Import successful.png.

However, while I'm trying to create a new OpenCV project, I could not import OpenCV library. The first import looks OK first import.png but after hitting Apply and OK, if I tried to fix project properties or import OpenCV dependencies in my .java files, the new imports "cannot not be resolve" and the OpenCV library in Property>Android becomes red: after touch.png.

It seems to be a simple problem but I could not make my way out of it so I'm appreciate if someone could help me out.

PS: I'm using Windows 7 with OpenCV 2.4.8.2 on Tegra Android Development Pack and Open CV 2.4.9 on the manual install.

Regards, Quang.