Ask Your Question
2

Installing Sample App / OpenCV Manager

asked 2012-07-14 08:05:44 -0600

njaa gravatar image

updated 2012-07-16 02:13:50 -0600

Kirill Kornyakov gravatar image

Hello,

I would like to install one of the advanced sample apps (let's say 15-puzzle) on my device (HTC One X), but I'm facing an annoying problem.

So I install the app (from eclipse or via google store) and at start up it asks for installing the OpenCV Manager. That works without problems! But then I have to install the OpenCV library package. Doing this, the Play Store opens and I get the message "Item not found". This happens all the time.

So anybody knows how to avoid this? Is there a possibility to load the packages from another source?

Thanks in advance!

Edit1: I have downloaded OCV 2.4 pack armeabi directly from the Play store and now it works :) Is this the right one or should I use "OCV 2.4 pack armeabi-v7a" or "OCV 2.4 pack armeabi-v7a neon"?

Edit2: Ok, still doesn't work. The native OpenCV camera leads to a crash.

this line: mCamera = new VideoCapture(Highgui.CV_CAP_ANDROID);

provides following log:

07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Cameras: (null)
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Picture Sizes: 320x240,480x480,640x368,640x480,800x600,1024x768,1280x720,1280x752,1280x960,1440x1080,1600x1200,1836x1080,1920x1080,2048x1152,2048x1360,2048x1536,2592x1456,2592x1520,2592x1920,2592x1944,2592x1952,3264x1840,3264x2448
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Picture Formats: jpeg,jfif,exif
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Preview Sizes: 176x144,320x240,352x288,480x480,640x480,704x576,720x408,720x480,720x576,768x432,800x448,960x720,1280x720,1280x752,1360x720,1920x1080,1920x1088
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Preview Formats: yuv420p,yuv420sp
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Preview Frame Rates: 5,8,10,15,20,24,25,30
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Thumbnail Sizes: 0x0,320x240
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Whitebalance Modes: auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy-daylight,shade,twilight
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Effects: mono,negative,none,posterize,sepia,aqua,solarize,nv-vivid,nv-emboss
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Scene Modes: auto,action,portrait,landscape,beach,fireworks,night,night-portrait,snow,sports,steadyphoto,sunset,theatre,barcode,candlelight,beauty-mode,background-blur,backlight-hdr,close-up,white-board,flowers
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Focus Modes: auto,infinity,macro,fixed,continuous-video,continuous-picture
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Antibanding Options: off,auto,50hz,60hz
07-14 16:41:19.250: D/OpenCV_NativeCamera(17420): Supported Flash Modes: auto,on,off,torch,red-eye
07-14 16:41:19.260: D/OpenCV_NativeCamera(17420): initCameraConnect: autofocus is set to mode "continuous-video"
07-14 16:41:19.260: D/OpenCV_NativeCamera(17420): initCameraConnect: preview format is set to yuv420sp
07-14 16:41:19.260: A/libc(17420): **Fatal signal 11 (SIGSEGV) at 0x0000000c (code=1)**

How can I solve this?

Edit3: I found a link with the same problem: thread.

My device: Tegra 3, OS Version 4.0.3, API 15 Installed Packages OCV 2.4 pack armeabi, 2.4 ... (more)

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2012-07-16 02:23:12 -0600

Kirill Kornyakov gravatar image

It seems that we discuss two different issues here. First is that you was unable to install OpenCV Manager and the required package. This is quite strange... For Tegra 3 you should use "OCV 2.4 pack armeabi-v7a neon" package. But please note that a special package for Tegra 3 will be released in a near future. After that (read announcements at OpenCV4Android group) I would recommend you to (1) update manager, (2) remove all OCV packages and (3) run any OpenCV sample to make Manager download the latest package for the Tegra 3. if it will not work, please let us know at the OpenCV4Android group!

Camera issue shouldn't be discussed here. Let's continue in the group or the issue tracker.

edit flag offensive delete link more

Comments

The problem is that the redirection to the Play Store doesn't work ("Item not found"). So I cannot let the Manager download the latest package and I have to search for it manually. I'll try the neon-package then, thx

njaa gravatar imagenjaa ( 2012-07-16 08:50:21 -0600 )edit
0

answered 2012-09-14 07:15:35 -0600

tmanthey gravatar image

For the Tegra 3 there is a special opencv 2.4. pack .

Maybe you want to try this.

edit flag offensive delete link more
0

answered 2012-07-14 14:50:43 -0600

Bruno gravatar image

I have got theses two apps from the store: https://play.google.com/store/apps/details?id=org.opencv.engine https://play.google.com/store/apps/details?id=org.opencv.libv24armv7a

That is on a Samsung galaxy S2. All the samples work.

P.S. for facedetection, tutorial-3-native and tutorial-4-mixed you have to complie native code using this tutorial http://docs.opencv.org/doc/tutorials/introduction/androidbinarypackage/androidbinarypackageusingwith_NDK.html

edit flag offensive delete link more

Comments

Thanks for the answer. Yes, I have installed the same apps now. The sample projects which do not use native camera work for me, just tutorial 2, facedetection, puzzle-15, etc. crash :/

njaa gravatar imagenjaa ( 2012-07-14 15:20:00 -0600 )edit

As Bruno said for Facedetection and others to work Download NDK from http://developer.android.com/tools/sdk/ndk/index.html#Downloads , build the JNI part of code 1s the so is generated you must be able to run those apps .

revanm gravatar imagerevanm ( 2012-08-15 08:47:17 -0600 )edit

Question Tools

Stats

Asked: 2012-07-14 08:05:44 -0600

Seen: 4,477 times

Last updated: Sep 14 '12