Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

unable to run Face detection example in OpenCV4Android 2.4.3.2

1,133 views
Skip to first unread message

He Jibo

unread,
Jan 5, 2013, 11:56:16 PM1/5/13
to android...@googlegroups.com
Hello, I am testing the face detection example in the OpenCV4Android 2.4.3.2. My device is samsung galaxy note 10.1 tablet. It runs Android 4.0.4 operating system. When I run the face detection example, nothing is shown on the screen, just a message saying "unfortunately, OCV Face Detection has stopped".

The error log is below. Can someone teach me how to solve this problem? Thanks!

01-05 22:50:48.385: E/AndroidRuntime(26373): FATAL EXCEPTION: main
01-05 22:50:48.385: E/AndroidRuntime(26373): java.lang.UnsatisfiedLinkError: Couldn't load detection_based_tracker: findLibrary returned null
01-05 22:50:48.385: E/AndroidRuntime(26373):     at java.lang.Runtime.loadLibrary(Runtime.java:365)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at java.lang.System.loadLibrary(System.java:535)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at org.opencv.samples.facedetect.FdActivity$1.onManagerConnected(FdActivity.java:66)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at org.opencv.android.AsyncServiceHelper$1.onServiceConnected(AsyncServiceHelper.java:314)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1068)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1085)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.os.Handler.handleCallback(Handler.java:605)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.os.Handler.dispatchMessage(Handler.java:92)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.os.Looper.loop(Looper.java:137)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at android.app.ActivityThread.main(ActivityThread.java:4517)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at java.lang.reflect.Method.invokeNative(Native Method)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at java.lang.reflect.Method.invoke(Method.java:511)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:995)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
01-05 22:50:48.385: E/AndroidRuntime(26373):     at dalvik.system.NativeStart.main(Native Method)

---------------------------
He Jibo
Assistant Professor
Department of Psychology,
Wichita State University
website: www.hejibo.info

Andrey Pavlenko

unread,
Jan 8, 2013, 6:49:06 AM1/8/13
to android...@googlegroups.com
The log says you forgot to include the sample native library to the APK.
Make sure you have the ndk-build step configured correctly in your project.
Reply all
Reply to author
Forward
0 new messages