Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

trouble with android sample

Hello everyone

I have a strange behavior when launching openCV tutorial1 - Camera Preview.

When I launch the project on a galaxy tab (framework 2.3.3) and on an HTC ( framework 4.2.2) everything is fine but when I try to launch it on a panasonic 102P (framework 2.3.5) the screen is fully black. I've tried to change display mode between java and native surface view, change "OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback);" by "OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this, mLoaderCallback);" but nothing change. When launching for the first time, I've downloaded and installed openCV Manager v2.9.

Is there any trouble supporting panasonic device?

Furthermore, When launching the application for the first time, there is a message for downloading the openCV manager and I would like to know if it is possible to embedded the openCV manager in our project in order user doesn't have to download it before launching our application?

I really thank you for your help

trouble with android sample

Hello everyone

I have a strange behavior when launching openCV tutorial1 - Camera Preview.

When I launch the project on a galaxy tab (framework 2.3.3) and on an HTC ( framework 4.2.2) everything is fine but when I try to launch it on a panasonic 102P (framework 2.3.5) the screen is fully black. I've tried to change display mode between java and native surface view, change "OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, change

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback);" mLoaderCallback);

by "OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6,

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this, mLoaderCallback);" mLoaderCallback);

but nothing change. changed. When launching for the first time, I've downloaded and installed openCV Manager v2.9.

Is there any trouble supporting panasonic device?

Furthermore, When launching the application for the first time, there is a message for downloading the openCV manager and I would like to know if it is possible to embedded the openCV manager in our project in order user doesn't have to download it before launching our application?

I really thank you for your help

click to hide/show revision 3
new behavior during execution

trouble with android sample

Hello everyone

I have a strange behavior when launching openCV tutorial1 - Camera Preview.

When I launch the project on a galaxy tab (framework 2.3.3) and on an HTC ( framework 4.2.2) everything is fine but when I try to launch it on a panasonic 102P (framework 2.3.5) the screen is fully black. I've tried to change display mode between java and native surface view, change

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_3, this, mLoaderCallback);

by

OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_6, this, mLoaderCallback);

but nothing changed. When launching for the first time, I've downloaded and installed openCV Manager v2.9.

Is there any trouble supporting panasonic device?

Furthermore, When launching the application for the first time, there is a message for downloading the openCV manager and I would like to know if it is possible to embedded the openCV manager in our project in order user doesn't have to download it before launching our application?

I really thank you for your help

Update: today I've tried to launch again the sample application without changing anything using the same android device which worked until yesterday and now I always have a black screen.

I've searched in the android documentation and I've seen that SurfaceTexture (which is in the openCV Library 2.4.6) have been added with API 11. However sample minSdkVersion is 8 like my own project which also display a black screen.

Is it the reason that I have a black screen? I don't understand how the sample worked until yesterday and from today I can no more use it. Is it an OS bug? Is there an equivalent of SurfaceTexture from android support v4 for example which can be used from API8?