Ask Your Question

advdk's profile - activity

2013-09-17 02:39:29 -0500 received badge  Critic (source)
2013-09-17 02:39:08 -0500 received badge  Scholar (source)
2013-09-17 02:33:36 -0500 answered a question Android async initialization problem

Finally it works. It really was the issue with OpenCV Manager. I loaded OpenCV version 2.4.5 and installed the manager from .apk provided with library. Thank you for your help.

2013-09-16 04:43:16 -0500 commented answer Android async initialization problem

Thanks for your responses. Please see the Update above.

2013-09-12 08:58:44 -0500 received badge  Editor (source)
2013-09-12 08:56:56 -0500 asked a question Android async initialization problem


I try to use the recommended asynchronous initialization with OpenCV Manager. I follow this tutorial.

However, the callback onManagerConnected() seems to be never called. My application has several text controls, a touch event and a camera preview (I access the camera by standard Android API, not by OpenCV methods) When the application is started the initAsync() method (called in onResume()) returns true and then the whole UI except the camera preview freezes immediately. The behaviour of camera preview is random - sometimes it runs correctly, sometimes it does not appear at all.

Everything worked fine several days ago, and the problem appeared, when I reverted from some minor unsuccessful changes (unrelated with OpenCV) in Git. I also have similar problems with OCV samples provided with the library - onManagerConnected() is never called.

I use Android v4.0.3 (API 15), OpenCV4Andorid v2.4.6.2 rev 2 on HTC Evo3D. I'd like to be more specific about the issue, but I have no idea what else can be important.

Please help.


I switched back to OpenCV 2.4.5 but it doesn't work either. Could it be the issue with OpenCV Manager, like Moster suggests? Can I get an older version of OpenCV Manager?

There is only the latest version available on Play Store. I tried to uninnstall OCV manager from my device and run my application with OCV 2.4.5 version loaded. Then I get an usual prompt to install OCV Manager on my device, I accept it, but all I can get is still the same version (2.10) of the Manager.

2013-06-26 07:25:13 -0500 received badge  Supporter (source)
2013-06-26 07:24:50 -0500 answered a question Implements CvViewFrameListener2 not found

Thank you for your answer, berak. Solved it. Seems like the interface name is misspelled in the tutorial. Instead of CvViewFrameListener2 (which really doesn't exist) I used CvCameraViewListener2 and everything works like a charm.

2013-06-26 05:55:17 -0500 answered a question Implements CvViewFrameListener2 not found

The same problem here. I tried to folllow this tutorial, but I got stuck at

11 Defines that your activity implements CvViewFrameListener2 interface (...)

It seems like the interface CvViewFrameListener2 doesn't exist in OpenCV library. Has anybody any idea?