Ask Your Question

cooperz's profile - activity

2013-01-02 13:23:15 -0500 asked a question new highgui window on mac loses focus and it is not remembered

When running any opencv sample application on Mac OS X (10.8) that uses basic highgui imshow functionality, the window does not have the focus by default. In addition, the window position is not remembered between subsequent runs, as it is the case on Windows. Any ideas of how to fix this ?

I'm getting this behaviour with OpenCV 2.4.3.


2012-10-30 12:03:05 -0500 commented answer android 3rd party library using opencv

I've modified the file OpenCVConfig.cmake, by replacing:

SET(OpenCV_LIB_COMPONENTS opencv_java)

and adding:

set(OpenCV_opencv_java_LIBNAME_OPT "") set(OpenCV_opencv_java_DEPS_OPT ) set(OpenCV_opencv_java_EXTRA_DEPS_OPT )

Now arm-linux-androideabi-objdump -p confirms that it links against

2012-10-30 11:39:39 -0500 commented answer android 3rd party library using opencv

If libopencv_java is the preferred way of linking against opencv on Android, then this should really be reflected in the OpenCVConfig.cmake file from sdk/native/jni folder, to resemble more what is found in for NDK, no ?

2012-10-27 19:08:24 -0500 commented question android 3rd party library using opencv

Eventually I've eliminated all the static non trivial opencv types (i.e. cv::Mat, cv::Point) and I have been able to eliminate the crashes. I hope it helps somebody out there.

2012-10-24 02:37:19 -0500 received badge  Student (source)
2012-10-22 13:23:10 -0500 commented question android 3rd party library using opencv

I've reduced this to a very simple sample library (just one class and one function call).

If I introduce static member that is of cv::Mat type, I can reproduce the crash.

2012-10-22 12:58:26 -0500 asked a question android 3rd party library using opencv

hi there,

I'm encountering problems when trying to compile and use another library on android (let us name it CoreVision) that uses opencv and cmake.

The library is using a cmake file and I'm using the opencv 2.4.2 android.toolchain.cmake file provided, as well as the OpenCVConfig.cmake from the Opencv-2.4.2/sdk/native/jni folder.

The library cross-compiles successfully. I try to add it to (and modify) one of the opencv android examples that uses JNI (I named the library that contains the JNI code CoreVisionIntegration), but everything explodes when I try to load the CoreVision library. While I do not know the exact cause, since the stack trace is not showing any useful information, the library has some static variables that are initialized to OpenCV types. Upon inspection of with the arm objdump, I notice that it does not link against, as is the Everything seems to be linked statically.

Any ideas on why that might be the case? Thanks, Andrei.