opencv: Failed to load mobilenet-ssd caffemodel.
Hi there
I’m following this guideline for using opencv dnn android
https://docs.opencv.org/master/d0/d6c/tutorial_dnn_android.html
But I got the issue at net = Dnn.readNetFromCaffe(proto, weights);
leading to crash the app.
I made an opencv2.framework for iOS from the latest source code from opencv GitHub and I got the same issue as well.
Do you guys have any idea ? Please help
ex = {InvocationTargetException@5137} "java.lang.reflect.InvocationTargetException"
cause = {UnsatisfiedLinkError@5141} "java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.dnn.Dnn.readNetFromCaffe_0(java.lang.String, java.lang.String) (tried Java_org_opencv_dnn_Dnn_readNetFromCaffe_10 and Java_org_opencv_dnn_Dnn_readNetFromCaffe_10__Ljava_lang_String_2Ljava_lang_String_2)"
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 48 (20 by maintainers)
@oishi89, never mind. We’re always glad to help you!
@oishi89, try to remove input layer name at setInput because actually it has another name.
It’s working now. Thanks for support 😃
@oishi89, yeah, exactly. You may find several
apk
at corresponding folder at unpackedopencv-3.3.0-android-sdk.zip
. Install one of them usingadb
for the target CPU architecture (adb shell cat /proc/cpuinfo
may help).