Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Android opencv camera ndk and samsung galaxy s5

hello! i just installed opencv android sdk version 2.4.11 and try to use Opencv samlpe - 15 puzzle and Tutorial 1 - Camera Preview from arhiv. When i was try work with camera on sdk level everything was ok. but on ndk level i had Supported Camera (Null) in Tutorial 1 and other program.

Fatal signal 11 (SIGSEGV) at 0x00000000 (code 1)

any idea why i have error? i used samsung galaxy s5 android 4.4.2 (api 19). OpenCv Manager version 2.20.

i try on sony ericsson xperia arc s lt18i and everything was ok with ndk and sdk level.

 D/OpenCV_NativeCamera(31448): Supported Cameras: (null)
D/OpenCV_NativeCamera(31448): Supported Picture Sizes: 

5312x2988,3984x2988,3264x2448,3264x1836,2560x1920,2048x1152,1920x1080,1280x960,1280x720,800x480,640x480
D/OpenCV_NativeCamera(31448): Supported Cameras: (null)
D/OpenCV_NativeCamera(31448): Supported Picture Sizes: 5312x2988,3984x2988,3264x2448,3264x1836,2560x1920,2048x1152,1920x1080,1280x960,1280x720,800x480,640x480
 D/OpenCV_NativeCamera(31448): Supported Picture Formats: jpeg,bayer-qcom-10gbrg,bayer-qcom-10grbg,bayer-qcom-10rggb,bayer-qcom-10bggr,bayer-mipi-10gbrg,bayer-mipi-10grbg,bayer-mipi-10rggb,bayer-mipi-10bggr,yuv422sp
 D/OpenCV_NativeCamera(31448): Supported Preview Sizes: 1920x1080,1440x1080,1280x720,1056x864,960x720,800x480,720x480,640x480,352x288,320x240,176x144
 D/OpenCV_NativeCamera(31448): Supported Preview Formats: yuv420sp,yuv420p
  D/OpenCV_NativeCamera(31448): Supported Preview Frame Rates: 15,24,30
    D/OpenCV_NativeCamera(31448): Supported Thumbnail Sizes: 512x288,480x288,256x154,432x288,512x384,352x288,320x240,176x144,0x0
    04-16 10:36:39.659: D/OpenCV_NativeCamera(31448): Supported Whitebalance Modes: auto,incandescent,fluorescent,daylight,cloudy-daylight
     D/OpenCV_NativeCamera(31448): Supported Effects: none,mono,negative,solarize,sepia,posterize,whiteboard,blackboard,aqua,emboss,sketch,neon
     D/OpenCV_NativeCamera(31448): Supported Scene Modes: auto,hdr
    D/OpenCV_NativeCamera(31448): Supported Focus Modes: auto,infinity,macro,continuous-video,continuous-picture
    D/OpenCV_NativeCamera(31448): Supported Antibanding Options: off,60hz,50hz,auto
    D/OpenCV_NativeCamera(31448): Supported Flash Modes: off,auto,on,torch
     D/OpenCV_NativeCamera(31448): initCameraConnect: autofocus is set to mode "continuous-video"
     D/OpenCV_NativeCamera(31448): initCameraConnect: preview format is set to yuv420sp
    D/OpenCV_NativeCamera(31448): initCameraConnect: preview format is set to 640x480
     A/libc(31448): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 31448 (mples.tutorial1)