Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV for Android (2.4.2): OpenCV Loader imports not resolved

The three imports (copied from samples/tutorial-3-..... are repeatedly not seen by Eclipse. As a result, OpenCVLoader.initDebug doesn't load, nor does it load my JNI lib. I need to find out if the JNI C++ code I did today (to convert a bitmap to a Mat in C++) to see if I got it right---it's 100% trial and error for that. I was hoping 2.4.2 would build and run in Eclipse, where 2.4.1 did not (and hopefully, from there, run on my tablet without force closing the instant it tries to load libopencv_java.so).

I followed the directions on both tutorials on installing and using OpenCV (on the SDK side, and on the JNI side, respectively), very carefully, and found the imports for the loader in, as I said, tutorial-3, but it didn't work. For my project, all of the image conversion, resizing, blending, and post-processing must be done in JNI, not in Java (memory constraints in Java).

Please advise.

Thanks, --jim

click to hide/show revision 2
retagged

OpenCV for Android (2.4.2): OpenCV Loader imports not resolved

The three imports (copied from samples/tutorial-3-..... are repeatedly not seen by Eclipse. As a result, OpenCVLoader.initDebug doesn't load, nor does it load my JNI lib. I need to find out if the JNI C++ code I did today (to convert a bitmap to a Mat in C++) to see if I got it right---it's 100% trial and error for that. I was hoping 2.4.2 would build and run in Eclipse, where 2.4.1 did not (and hopefully, from there, run on my tablet without force closing the instant it tries to load libopencv_java.so).

I followed the directions on both tutorials on installing and using OpenCV (on the SDK side, and on the JNI side, respectively), very carefully, and found the imports for the loader in, as I said, tutorial-3, but it didn't work. For my project, all of the image conversion, resizing, blending, and post-processing must be done in JNI, not in Java (memory constraints in Java).

Please advise.

Thanks, --jim