The OpenCV library for Android as Gradle project.
All credit goes to http://opencv.org/ I've took their library and exported it as .aar
library. Now you can easily use OpenCV in a Gradle / Android Studio project.
I've uploaded the .aar
in my maven repository. You only need to add following lines to your build.gradle
to add the dependency:
repositories {
maven {
url 'https://raw.github.com/vRallev/mvn-repo/master/'
}
}
dependencies {
compile 'org.opencv:opencv-android:2.4.6'
}
You can also clone the library and add it your local maven repository.
- Clone the repository.
- In the root project folder (
opencv-library
) rungradle uploadArchives
. - Add the same dependency as above:
repositories {
mavenLocal()
}
dependencies {
compile 'org.opencv:opencv-android:2.4.6'
}