Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Android async initialization problem

Hi,

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 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.

Android async initialization problem

Hi,

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

However, the callback onManagerConnected() 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() initAsync() method (called in onResume()) 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 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.

Android async initialization problem

Hi,

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.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.

Android async initialization problem

Hi,

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.

Android async initialization problem

Hi,

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.

Update:

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.