Problem with android camera

asked 2016-11-01 17:15:14 -0500

I'm building an application for android using kivy and I'm using opencv to get camera feed and do some transformations with it. I'm using the following to get the camera feed.

capture = cv2.VideoCapture(0)

The camera doesn't load and i get these errors on logcat:

D OpenCV::camera: CvCapture_Android::CvCapture_Android(0)
D OpenCV::camera: Library name: /data/data/org.test.myapp/files/lib/python2.7/site-packages/cv2.so
D OpenCV::camera: Library base address: 0xa0c8f000
D OpenCV::camera: Libraries folder found: /data/app/org.test.myapp-1/lib/arm/
D OpenCV::camera: CameraWrapperConnector::connectToLib: folderPath=/data/app/org.test.myapp-1/lib/arm/
E OpenCV::camera: ||libnative_camera_r4.4.0.so
E OpenCV::camera: ||libnative_camera_r2.3.3.so
E OpenCV::camera: ||libnative_camera_r4.1.1.so
E OpenCV::camera: ||libnative_camera_r4.2.0.so
E OpenCV::camera: ||libnative_camera_r4.0.0.so
E OpenCV::camera: ||libnative_camera_r3.0.1.so
E OpenCV::camera: ||libnative_camera_r2.2.0.so
E OpenCV::camera: ||libnative_camera_r4.3.0.so
E OpenCV::camera: ||libnative_camera_r4.0.3.so
D OpenCV::camera: try to load library 'libnative_camera_r4.4.0.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.4.0.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android11BufferQueueC1ERKNS_2spINS_19IGraphicBufferAllocEEE" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.4.0.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r4.3.0.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.3.0.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android11BufferQueueC1EbRKNS_2spINS_19IGraphicBufferAllocEEE" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.3.0.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r4.2.0.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.2.0.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.2.0.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r4.1.1.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.1.1.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.1.1.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r4.0.3.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.0.3.so, dlerror="dlopen failed: cannot locate symbol "__exidx_end" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.0.3.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r4.0.0.so'
D OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library /data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.0.0.so, dlerror="dlopen failed: cannot locate symbol "_ZN7android6Camera10disconnectEv" referenced by "/data/app/org.test.myapp-1/lib/arm/libnative_camera_r4.0.0.so"..."
D OpenCV::camera: try to load library 'libnative_camera_r3.0.1.so'
D OpenCV ...
(more)
edit retag flag offensive close merge delete