integration between ligbdx and CvCameraViewListener2

asked 2014-06-09 15:47:29 -0600

xpete gravatar image

updated 2014-06-10 01:04:17 -0600

berak gravatar image

I'am trying to use OpenCV with libgdx to process the image from an Android phone camera and use it on a game.

So far I've a CvCameraViewListener2 implementation which is called from the GameScreen but the screen is always black. I'am not getting any imagem from the camera or any error.

I already did this:

I also wrote the OpenCV processing on a diferent App and it's working... now I want to merge that with LibGDX but it's not working.

Already tried on Nexus S, Galaxy S and Huawei u8815. All with stock software.

If I change mNumCameras to 1 sometimes it works... but not always.

Code is available here:

Any help?


edit retag flag offensive close merge delete