how i use opencv on android studio
im just lost,
cant even load the samples,
or build their code
im just lost,
cant even load the samples,
or build their code
If you want to use the OpenCV4Android SDK follow these steps:
Download the latest Version of the OpenCV4Android sdk and decompress the folder.
Import it to a Android Studio Project (e.g. one of its samples) with File -> New -> Import Module. Then choose the sdk/java folder from the decompressed folder.
Update the the Gradle file so that compileSdkVersion, buildToolsVersion, minSdkVersion and targetSdkVersion of your app and the opencvLibrary match.
Add the module dependencie of your app. Go to the Projectstructure choose the module folder from your app go to "Dependencies" and add the dependencie with the "+" and module dependencie.
Copy the Libs Folder from sdk/native from your decompressed Folder into your app main folder app/src/main. After that rename Libs int jniLibs
When you finished these Tasks successfully everything should work.
Asked: 2016-12-12 00:02:19 -0600
Seen: 410 times
Last updated: Dec 12 '16
How to get good matches from the ORB feature detection algorithm?
How to decrease the number of processed frames from a live video camera?
Unresolved inclusion in OpenCV+Android tutorial
build problems for android_binary_package - Eclipse Indigo, Ubuntu 12.04
Which values for window size and number of pyramids are reasonable for calcOpticalFlowPyrLK?
Errors running builder 'CDT Builder' when trying to build OpenCV for android samples
ndk-build deletes native OpenCV library
Installing Sample App / OpenCV Manager