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: https://github.com/libgdx/libgdx/wiki/Integrating-libgdx-and-the-device-camera
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: https://github.com/xpete/libgdxopencvtest
Any help?
Thanks