SandroMachado / openalpr-android

Android Automatic License Plate Recognition library (http://www.openalpr.com) ported for android.
Apache License 2.0
770 stars 272 forks source link

OpenCV Android - Cannot Resolve Corresponding JNI Function/No implementation found for #60

Open souJd opened 6 years ago

souJd commented 6 years ago

I'm trying to build https://github.com/SandroMachado/openalpr-android for Android. It builds and launches, but after calling native method for recognizing it makes an exception. Thanks for your time and help! The error Caused by: java.lang.UnsatisfiedLinkError: No implementation found for java.lang.String be.mike.licenseplate.AlprJNIWrapper.recognizeWithCountryRegionNConfig(java.lang.String, java.lang.String, java.lang.String, java.lang.String, int) (tried Java_be_mike_licenseplate_AlprJNIWrapper_recognizeWithCountryRegionNConfig and Java_be_mike_licenseplate_AlprJNIWrapper_recognizeWithCountryRegionNConfig__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I)

Also the function recognize,etc are red " Cannot resolve corresponding JNI function "

sungwook-moon commented 6 years ago

Note that SandroMachado version calls JNI with different package name (org.openalpr vs com.openalpr.jni) and library name from the original openalpr. If you are somehow mixing these two, it won't work with the given exception. This repo specifially references uploaded binary SO under jniLibs folder so it may not work if the device is not a compatible architecture.