Ask Your Question
0

UnsatisfiedLinkError: CascadeClassifier_1

asked 2013-02-12 19:37:41 -0600

Jibo He gravatar image

updated 2013-02-12 23:22:13 -0600

Hello, everyone,

I am trying to use the face-detection example of opencv4android. I run into the following errors. I do not find much information on how to solve it using google. Can someone teach me how to solve this? Thanks!

02-12 19:28:47.163: E/AndroidRuntime(17824): FATAL EXCEPTION: main
02-12 19:28:47.163: E/AndroidRuntime(17824): java.lang.
UnsatisfiedLinkError: CascadeClassifier_1
02-12 19:28:47.163: E/AndroidRuntime(17824):     at org.opencv.objdetect.CascadeClassifier.CascadeClassifier_1(Native Method)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at org.opencv.objdetect.CascadeClassifier.<init>(CascadeClassifier.java:58)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at smartsensing.statefarm.org.FdView.<init>(FdView.java:162)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at smartsensing.statefarm.org.FdActivity.onCreate(FdActivity.java:68)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1050)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.os.Looper.loop(Looper.java:130)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at android.app.ActivityThread.main(ActivityThread.java:3691)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at java.lang.reflect.Method.invokeNative(Native Method)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at java.lang.reflect.Method.invoke(Method.java:507)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:670)
02-12 19:28:47.163: E/AndroidRuntime(17824):     at dalvik.system.NativeStart.main(Native Method)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-02-12 23:29:12 -0600

It looks like you try to create org.opencv.objdetect.CascadeClassifier object before OpenCV library initialization. Any OpenCV object can be used only after successful library initialization with OpenCV Manager or using InitDebug() method. In your case you need to move CascadeClassifier object construction to code that is executed in successful case of onManagerConnected callback or after it.

edit flag offensive delete link more

Comments

Your solution was fixed my error, I move all OpenCV function after InitDebug() Thanks

vohungvi gravatar imagevohungvi ( 2016-01-28 05:14:29 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-02-12 19:37:41 -0600

Seen: 2,605 times

Last updated: Feb 12 '13