2017-11-22 03:16:15 -0600 | received badge | ● Notable Question (source) |
2016-06-15 15:49:32 -0600 | received badge | ● Popular Question (source) |
2016-04-16 12:23:22 -0600 | received badge | ● Student (source) |
2015-11-08 10:26:31 -0600 | received badge | ● Supporter (source) |
2015-11-01 07:03:41 -0600 | asked a question | OpenCV Android - Cannot Resolve Corresponding JNI Function Hi, I'm trying to setup Android Studio with Opencv by following this tutorial outlined here: https://www.youtube.com/watch?v=OTw_G... I can get the result obtained by the person giving the tutorial but upon trying to actually use some of Opencv's functions I run into some trouble. I am able to load the Opencv library but upon trying use some of the native functions such as "Imgcodecs.imread" I get the error: ".lang.UnsatisfiedLinkError: No implementation found for long org.opencv.imgcodecs.Imgcodecs.imread_1(java.lang.String)" I believe I have tracked down the issue to the following: It seems that Android Studio is unable to detect the native C++ code which I'm guessing should be picked up from jiniLibs folder I now have in app/src/main? I've tried updating Android Studio to the latest stable build and I have fixed my file paths for my android SDK and NDK as having white-space can apparently affect the running of native code. The issue still persists. I have been trying to fix this for the last 4 hours, any help would be greatly appreciated! |
2015-11-01 07:02:47 -0600 | commented answer | How to work with OPENCV4ANDROID- in android studio I think you left out the step where you go File>Project Structure and then add the dependency for opencv. Other than that, it works. |