0

I want to use static opencv in my android application. To this end, I try to apply this tutorial: https://www.youtube.com/watch?v=OTw_GIQNbD8

My problem is that I can't paste the /opencv/sdk/java/ into /libs/ directory in my android application. This error message apprears:

enter image description here

Can you help me please? I use android studio 2.1.2 and opencv-2.4.9.

Community
  • 1
  • 1
User_87
  • 71
  • 1
  • 7
  • Nothing helpful can be said without analysing the code. – ZdaR Aug 10 '16 at 05:03
  • It is just a copy/past of the directory.. – User_87 Aug 10 '16 at 07:43
  • You can follow this [link](http://stackoverflow.com/questions/27406303/opencv-in-android-studio) – ZdaR Aug 10 '16 at 07:59
  • Thank you for your help :) I tried the solution mentioned in the link but the initialization of openCV is failed and the screen in the mobile device is black when I run the application ( the camera does not open). – User_87 Aug 10 '16 at 13:53
  • Please share the logcat error you are facing ? – ZdaR Aug 10 '16 at 16:17

2 Answers2

0

I wrote the article about OpenCV in Android project so if you want check it out. I hope it'll help! This is the link OpenCV in Android Project

MrOnyszko
  • 847
  • 9
  • 13
  • Relevant bit: static { if (OpenCVLoader.initDebug()) { Log.i(TAG, "OpenCV initialize success"); } else { Log.i(TAG, "OpenCV initialize failed"); } } – bantmen Jun 22 '18 at 15:47
0

I always copy to the project directory. See my picture. enter image description here

steven du
  • 21
  • 2