I want to use OpenCV library in my app with Android Studio(without manager)

asked 2016-01-13 08:01:42 -0500

Sethu gravatar image
 I followed instructions found here

http://ashokvarma.me/android/how-to-s...

but I get error "OpenCV/StaticHelper: First attempt to load libs fails".

static { if (!OpenCVLoader.initDebug()) Log.d("ERROR", "Unable to load OpenCV"); else { Log.d("SUCCESS", "OpenCV loaded"); } }

This is the Opencv Code I am using..

The logcat result which i receive is "Unable to load OpenCV"

NOTE: opencv version :3.0.1

Could anyone please help me out of this because i am struggling with this for days.. It would be a great help :).. Thanks in Advance..

edit retag flag offensive close merge delete

Comments

were you able to sync the build.gradle successfully ?

Heshan Sandeepa gravatar imageHeshan Sandeepa ( 2016-01-14 06:41:35 -0500 )edit

yes sir i was able to do it... I found the solution for this issue ,

initdebug function wanted to load the library called opencv_java.so but the opencv version 3.1.0 provided the so file named opencv_java3.so... so I just renamed the file which happened to work correctly.. Thank you :)

Sethu gravatar imageSethu ( 2016-01-19 04:27:18 -0500 )edit