Getting the camera to work with OpenCV Native Activity Sample

asked 2014-07-11 01:08:08 -0600

Shakith gravatar image

updated 2014-07-14 04:43:41 -0600

berak gravatar image

I have managed to compile the Native Activity example in opencv4android. When running it gives a a fatal error.

07-10 22:35:27.694: D/OpenCV::camera(1818): Libraries folder found: /data/app-lib/org.opencv.engine-1/
07-10 22:35:27.694: D/OpenCV::camera(1818): CameraWrapperConnector::connectToLib: folderPath=/data/app-lib/org.opencv.engine-1/
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.3.0.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.0.3.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.4.0.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r2.3.3.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.2.0.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r2.2.0.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.0.0.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r4.1.1.so
07-10 22:35:27.694: E/OpenCV::camera(1818): ||libnative_camera_r3.0.1.so
07-10 22:35:27.694: D/OpenCV::camera(1818): try to load library 'libnative_camera_r4.4.0.so'
07-10 22:35:27.717: D/OpenCV::camera(1818): Loaded library '/data/app-lib/org.opencv.engine-1/libnative_camera_r4.4.0.so'
07-10 22:35:27.717: D/OpenCV_NativeCamera(1818): CameraHandler::initCameraConnect(0x5a839f5d, 0, 0x5ac1df20, 0x0)
07-10 22:35:27.717: D/OpenCV_NativeCamera(1818): Current process name for camera init: org.opencv.samples.NativeActivity
07-10 22:35:27.858: D/OpenCV_NativeCamera(1818): Instantiated new CameraHandler (0x5a839f5d, 0x5ac1df20)
07-10 22:35:27.858: I/OpenCV_NativeCamera(1818): initCameraConnect: [antibanding=auto;antibanding-values=off,auto,50hz,60hz;auto-convergence-mode=frame;auto-convergence-mode-values=;auto-exposure-lock=false;auto-exposure-lock-supported=true;auto-whitebalance-lock=false;auto-whitebalance-lock-supported=true;awb-damping=false;brightness=50;camera-name=S5K4E1GA;contrast=100;current-iso=100;effect=none;effect-values=none,negative,solarize,sepia,mono,natural,vivid,color-swap,blackwhite,whiteboard,blackboard,aqua,posterize;exif-image-description=;exif-make=Google;exif-model=Glass 1;exif-software=Glass-1 XE18.11 1223935;exposure=auto;exposure-compensation=0;exposure-compensation-step=0.1;exposure-mode-values=manual,auto,night,backlighting,spotlight,sports,snow,beach,aperture,small-aperture;flash-mode=off;flash-mode-values=off;focal-length=2.95;focus-mode=infinity;focus-mode-values=infinity;gbce=false;gbce-supported=true;glbce=false;glbce-supported=true;horizontal-view-angle=54.8;ipp=ldc-nsf;ipp-values=off,ldc,nsf,
ldc-nsf;iso=auto;iso-mode-values=auto,100,200,400,
07-10 22:35:27.858: D/OpenCV_NativeCamera(1818): Supported Cameras: (null)
07-10 22:35:27.866: D/OpenCV_NativeCamera(1818): Supported Picture Sizes: 2592x1944,2560x1888,2528x1856,2592x1728,2592x1458,2560x1888,2400x1350,2304x1296,2240x1344,2160x1440,2112x1728,2112x1188,2048x1152,2048x1536,2016x1512,2016x1134,2000x1600,1920x1080,1600x1200,1600x900,1536x864,1408x792,1344x756,1296x972,1280x1024,1280x720,1152x864,1280x960,1024x768,1024x576,640x480,320x240
07-10 22:35:27.866: D/OpenCV_NativeCamera(1818): Supported Picture Formats: unused,yuv420sp,yuv420p,yuv422i-yuyv,rgb565,bayer-rggb,jpeg
07-10 22:35:27.866: D/OpenCV_NativeCamera(1818): Supported Preview Sizes: 1920x1080,1280x960,1280x720,1024x768,1024x576,960x720,800x480,768x576,720x576,720x480,768x576,640x480,640x368,640x360,512x384,512x288,416x304,416x240,352x288,320x240,320x192,256x144,240x160,224x160,176x144,160x120,128x96,960x1280,720x1280,768x1024,576x1024,720x960,480x800,576x768,576x720,576x768,480x720,480x640,368x640,384x512,288x512,304x416,240x416,288x352,240x320,192x320,144x256 ...
(more)
edit retag flag offensive close merge delete