Ask Your Question
1

how to use opencv in android studio in native c++ code ??

asked 2016-03-21 05:32:58 -0600

Pulkit gravatar image

how can i use openCV in an android studio's project - but i need to use it in other native cpp files and not in java.

all the guides and tutorials i found explain how to use openCV in java files (loadLibrary..)

eventually i have all the .so in jniLibs folder or add openCV as a module with a dependency. I am using Android Studio 1.4.1 and opencv 2.4.11.

edit retag flag offensive close merge delete

Comments

sengsational gravatar imagesengsational ( 2017-05-17 11:10:36 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-09-22 19:48:19 -0600

dtdzung gravatar image

this videos exactly match what you need about configuration opencv. ndk and android studio https://www.youtube.com/watch?v=Oq3oi...

edit flag offensive delete link more

Comments

Tks for sharing.

hoang anh tuan gravatar imagehoang anh tuan ( 2016-12-20 04:12:48 -0600 )edit
0

answered 2017-05-17 11:10:56 -0600

sengsational gravatar image

There is a similar question here with code on github.

There is a feature of Android Studio to Include C++ Support which generates an external build file called CMakeLists.txt. The similar question has changes required to that file to get the C++ portion of OpenCV to compile in Android Studio.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-21 05:32:58 -0600

Seen: 12,428 times

Last updated: May 17 '17