Closed imaNNeo closed 8 years ago
@imaNNeoFighT which device are you using?
huawei honor 3c u10, of course i don't inistall openCv in my computer , it can related to this???
No, you computer configuration is not related with this issue. Did you tried with the demo app at the releases tab?
Seems this device is running Android 4.2 and according to this StackOverflow answer it might be needed to additionally load opencv library explicitly.
Yeah, that could be the issue. At this moment I am only loading the openalpr-native
module.
@SandroMachado i downloaded sample apk and when i take picture, i get ForceClose.
That is a known issue. At the second time it should work if is not related to any other missing configuration. Can you please test it again?
Closed without support to reproduce.
I had the same issue:
it was fixed with this lines (the order is important):
System.loadLibrary("lept");
System.loadLibrary("tess");
System.loadLibrary("opencv_java");
when you execute the app in android 4.2 and prior android cannot understand where are the libraries and you have to register it manually.
I put these lines in onCreate of MainActivity.
So this is a real bug because in gradle you said:
minSdkVersion 16
if you want i can create a pull requet.
@mercuriete can you please make the PR?
hi, i have this issue, anyone can help me???
opencv E/linker: load_library(linker.cpp:759): library "libopencv_java.so" not found 02-01 22:00:18.204 11789-11789/com.neo.testopencv E/linker: soinfo_link_image(linker.cpp:1652): could not load library "libopencv_java.so" needed by "libopenalpr-native.so"; caused by load_library(linker.cpp:759): library "libopencv_java.so" not found 02-01 22:00:18.204 11789-11789/com.neo.testopencv E/dalvikvm: dlopen("/data/app-lib/com.neo.testopencv-1/libopenalpr-native.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1652): could not load library "libopencv_java.so" needed by "libopenalpr-native.so"; caused by load_library(linker.cpp:759): library "libopencv_java.so" not found 02-01 22:00:18.209 11789-11789/com.neo.testopencv E/AndroidRuntime: FATAL EXCEPTION: main java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_link_image(linker.cpp:1652): could not load library "libopencv_java.so" needed by "libopenalpr-native.so"; caused by load_library(linker.cpp:759): library "libopencv_java.so" not found at java.lang.Runtime.loadLibrary(Runtime.java:372) at java.lang.System.loadLibrary(System.java:514) at org.openalpr.AlprJNIWrapper.<clinit>(AlprJNIWrapper.java:9) at org.openalpr.OpenALPR$Factory.create(OpenALPR.java:78) at com.neo.testopencv.MainActivity.onActivityResult(MainActivity.java:61) at android.app.Activity.dispatchActivityResult(Activity.java:5383) at android.app.ActivityThread.deliverResults(ActivityThread.java:3575) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3622) at android.app.ActivityThread.access$1100(ActivityThread.java:169) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1436) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5433) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:924) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:691) at dalvik.system.NativeStart.main(Native Method)