Ask Your Question
0

Can't run OpenCV4Android samples in emulator

asked 2012-08-09 10:49:53 -0600

r.a. gravatar image

updated 2012-10-10 01:43:12 -0600

Kirill Kornyakov gravatar image

Hi, I'm trying simply to use opencv jni functionality for android. I've followed this: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_binary_package.html (Windows vista)

Installed:

  1. opencv 2.4.2 for android.(changed 2.4.2lib from API 9 to 11)
  2. eclipse hellio with ADT and CDT.
  3. NDK (last version)
  4. SDK platform (API 11)
  5. emulator with camera for API 11
  6. All opencv projects are at API 11.

Works:

  1. NDK examples ,compiled and run.

problems with opencv samples:

Compilation just fine, but no sample succeed run on emulator. I load the sample and asked to install the manager it fails(noo connection to google play) and I'm installing it by 'android' command line from cmd(arm7 too) but still after openning the applicaion still don't recognize the manager!

any idea?

edit retag flag offensive close merge delete

Comments

Please provide the details how you configured the emilator and logcat logs of an OpenCV sample failure.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2012-08-10 02:21:20 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2012-08-10 05:27:43 -0600

Before using OpenCV example you need to istall 2 packages: OpenCV Manager and OpenCV binary pack for target device arch. You can find out target hardware architecture from Android image name.

armeabi -> OpenCV_binary_pack_armv5; armeabi-v7a -> OpenCV_binary_pack_armv7a; x86 -> OpenCV_binary_pack_x86;

Post logcat log here in case of issue with manager.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-08-09 10:49:53 -0600

Seen: 1,181 times

Last updated: Oct 02 '12