1

I want to do openCV v3.4.0(latest version) setup with my Android studio.I have downloaded latest ndk and trying to import whole OpenCV android modules like image processing, face detection, machine learning.. everything.My android studio new ndk project is ready and working fine.

Downloaded Latest OpenCV version(3.4.0)

Documentation https://docs.opencv.org/3.4.0/index.html

Guys please post answers who has done setup for v3.4.0 only. please don't post any answer for OpenCV older version's.

Download:- New project source code here and try once.

SDK difference between v3.40 and v3.1.0
enter image description here

Pankaj Kant Patel
  • 2,050
  • 21
  • 27
  • Wat's the problem with OpenCV version 3.4.0 installation? – Andrii Omelchenko Jan 30 '18 at 19:01
  • @AndriiOmelchenko I don't know sir,Kind of sdk they have published is not understandable and no such updated documentations. – Pankaj Kant Patel Jan 31 '18 at 11:11
  • Have you tried [this answer](https://stackoverflow.com/a/40746665/3051961) of mine? Try to implement the steps in a fresh project and then report the issues if any. – ZdaR Mar 22 '18 at 05:35
  • Why [this steps](https://stackoverflow.com/a/35135495/6950238) not acceptable? Seems steps is totally same for OpenCV v3.1.0 and OpenCV v3.4.0: I'm successfully installed OpenCV v3.4.0 with that tutorial. – Andrii Omelchenko Mar 22 '18 at 16:52
  • Hi @AndriiOmelchenko it's not same. Please download v3.4.0 SDK and look at its structure.Let me know if you got success.Thanks – Pankaj Kant Patel Mar 22 '18 at 17:28
  • @ZdaR Yes i tried it. Unable to find android SDK path inside v3.4.0 – Pankaj Kant Patel Mar 22 '18 at 17:30
  • I'm already successfully installed OpenCV v3.4.0 with that tutorial. Just before mine first comment (Jan 30 at 19:01) – Andrii Omelchenko Mar 22 '18 at 17:30
  • @AndriiOmelchenko Can you please post your answer here. Because like that steps mentioned on answer unable to find any path "select {unzipped_opencv}/sdk/java ".It would be great if I can see any sample project.For now its dark for me.Thank you – Pankaj Kant Patel Mar 22 '18 at 17:40
  • Just unzip downloaded `opencv-3.4.0-android-sdk.zip` to e.g. `c:\temp\OpenCVSDK_3_4` and then, on step "4. From Android Studio import OpenCV" from Android Studio dialog select `c:\temp\OpenCVSDK_3_4`. There is no need to send new answer: steps are totally the same (instead OpenCVLibrary310 names). – Andrii Omelchenko Mar 22 '18 at 17:49
  • Seems you download wrong version of library (not for Android). Try [this link](https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.4.0/) – Andrii Omelchenko Mar 22 '18 at 17:57
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/167362/discussion-between-pankaj-kant-patel-and-andrii-omelchenko). – Pankaj Kant Patel Mar 22 '18 at 17:57

1 Answers1

7

You download wrong (not for Android) version of OpenCV library. Download right version from https://sourceforge.net/projects/opencvlibrary/files/opencv-android/3.4.0/ by press exactly opencv-3.4.0-android-sdk.zip:

Place of OCV40 file

and follow instructions from this answer of ssim.

Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79