Ask Your Question

negino's profile - activity

2016-08-12 12:04:33 -0600 received badge  Enthusiast
2016-08-09 16:31:40 -0600 received badge  Editor (source)
2016-08-09 16:29:13 -0600 asked a question Android Camera2Renderer can't find the correct resolution

Hi,

I'm trying to run this opencv4android example (android tutorial 4): https://github.com/opencv/opencv/tree...

The project compiles fine, but when i tryied to run on my Sony xperia Z3 Compact there is only a black screen.

Log shows me:

08-07 23:02:57.854 30516-30572/com.negi.app I/OpenGLRenderer: Initialized EGL, version 1.4
08-07 23:02:57.912 30516-30563/com.negi.app I/CameraGLRendererBase: onSurfaceCreated
08-07 23:02:57.912 30516-30563/com.negi.app I/CameraGLRendererBase: OpenGL ES version: OpenGL ES 3.0 [email protected] AU@ (GIT@I3f4bae6ca5)
08-07 23:02:57.912 30516-30563/com.negi.app D/CameraGLRendererBase: loadShader
08-07 23:02:57.940 30516-30563/com.negi.app D/CameraGLRendererBase: Shader program is built OK
08-07 23:02:57.941 30516-30563/com.negi.app D/CameraGLRendererBase: loadShader
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: Shader program is built OK
08-07 23:02:57.948 30516-30563/com.negi.app I/CameraGLRendererBase: onSurfaceChanged(720x1072)
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: updateState
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: mEnabled=true, mHaveSurface=true
08-07 23:02:57.948 30516-30563/com.negi.app D/Camera2Renderer: doStart
08-07 23:02:57.948 30516-30563/com.negi.app I/Camera2Renderer: startBackgroundThread
08-07 23:02:57.948 30516-30563/com.negi.app I/Camera2Renderer: stopBackgroundThread
08-07 23:02:57.950 30516-30563/com.negi.app D/CameraGLRendererBase: doStart
08-07 23:02:57.951 30516-30563/com.negi.app D/CameraGLRendererBase: initSurfaceTexture
08-07 23:02:57.951 30516-30563/com.negi.app D/CameraGLRendererBase: deleteSurfaceTexture
08-07 23:02:57.953 30516-30563/com.negi.app I/Camera2Renderer: openCamera
08-07 23:02:57.953 30516-30563/com.negi.app I/CameraManagerGlobal: Connecting to camera service
08-07 23:02:57.958 30516-30563/com.negi.app I/Camera2Renderer: Opening camera: 0
08-07 23:02:57.974 30516-30563/com.negi.app I/CameraManager: Using legacy camera HAL.
08-07 23:02:58.050 30516-30572/com.negi.app V/RenderScript: 0xaebf9000 Launching thread(s), CPUs 4
08-07 23:02:58.097 30516-30516/com.negi.app I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@db53606 time:220493642
08-07 23:02:58.330 30516-30563/com.negi.app D/CameraGLRendererBase: updateState end
08-07 23:02:58.330 30516-30563/com.negi.app I/Camera2Renderer: setCameraPreviewSize(720x1072)
08-07 23:02:58.330 30516-30563/com.negi.app I/Camera2Renderer: cacPreviewSize: 720x1072
08-07 23:02:58.330 30516-30604/com.negi.app I/Camera2Renderer: createCameraPreviewSession(-1x-1)
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 1600x1200
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 1280x720
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 960x720
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 720x480
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 640x480
08-07 23:02:58.335 30516-30563/com.negi.app D/Camera2Renderer: trying size: 480x320
08-07 23:02:58.335 30516-30563/com.negi ...
(more)
2016-08-08 00:56:02 -0600 asked a question Can't make CameraGLSurfaceView works on Android

Hi, I'm trying to run the example from this link: https://github.com/opencv/opencv/tree...

The project compiles fine, but when i run the application on my Sony Xperia Z3 Compact there is no camera preview (black screen). I got this log from android monitor:

08-07 23:02:57.518 30516-30516/? I/art: Late-enabling -Xcheck:jni
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: disableView
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: updateState
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: mEnabled=false, mHaveSurface=false
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: keeping State unchanged
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: updateState end
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: enableView
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: updateState
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: mEnabled=true, mHaveSurface=false
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: keeping State unchanged
08-07 23:02:57.733 30516-30516/com.negi.app D/CameraGLRendererBase: updateState end
08-07 23:02:57.754 30516-30516/com.negi.app I/CameraGLSurfaceView: onResume
08-07 23:02:57.754 30516-30516/com.negi.app I/CameraGLRendererBase: onResume
08-07 23:02:57.764 30516-30572/com.negi.app D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
08-07 23:02:57.846 30516-30572/com.negi.app I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: EGL 1.4 QUALCOMM build: Nondeterministic_AU_msm8974_LA.BF.1.1.3_RB1__release_AU (I3f4bae6ca5)
                                                           OpenGL ES Shader Compiler Version: E031.29.00.00
                                                           Build Date: 02/14/16 Sun
                                                           Local Branch: mybranch18261495
                                                           Remote Branch: quic/LA.BF.1.1.3_rb1.10
                                                           Local Patches: NONE
                                                           Reconstruct Branch: NOTHING
08-07 23:02:57.854 30516-30572/com.negi.app I/OpenGLRenderer: Initialized EGL, version 1.4
08-07 23:02:57.912 30516-30563/com.negi.app I/CameraGLRendererBase: onSurfaceCreated
08-07 23:02:57.912 30516-30563/com.negi.app I/CameraGLRendererBase: OpenGL ES version: OpenGL ES 3.0 [email protected] AU@ (GIT@I3f4bae6ca5)
08-07 23:02:57.912 30516-30563/com.negi.app D/CameraGLRendererBase: loadShader
08-07 23:02:57.940 30516-30563/com.negi.app D/CameraGLRendererBase: Shader program is built OK
08-07 23:02:57.941 30516-30563/com.negi.app D/CameraGLRendererBase: loadShader
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: Shader program is built OK
08-07 23:02:57.948 30516-30563/com.negi.app I/CameraGLRendererBase: onSurfaceChanged(720x1072)
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: updateState
08-07 23:02:57.948 30516-30563/com.negi.app D/CameraGLRendererBase: mEnabled=true, mHaveSurface=true
08-07 23:02:57.948 30516-30563/com.negi.app D/Camera2Renderer: doStart
08-07 23:02:57.948 30516-30563/com.negi.app I/Camera2Renderer: startBackgroundThread
08-07 23:02:57.948 30516-30563/com.negi.app I/Camera2Renderer: stopBackgroundThread
08-07 23:02:57.950 30516-30563/com.negi.app D/CameraGLRendererBase: doStart
08-07 23:02:57.951 30516-30563/com.negi.app D/CameraGLRendererBase: initSurfaceTexture
08-07 23:02:57.951 30516-30563/com ...
(more)