Skip to content

Easy way to integrate OpenCv into your Android project via Gradle

License

Notifications You must be signed in to change notification settings

RivoLink/opencv-android

 
 

Repository files navigation

opencv-android

Update: OpenCV v4.2.0 and v4.3.0 (with and without contribution packages) are also now available.

Easy way to integrate OpenCv into your Android project via Gradle.
No NDK dependency needed - just include this library and you are good to go.

Disclamer: The GitHub project is not (yet) intended to be used as module dependency.
Include one of this dependencies in your module's build.gradle dependencies section

dependencies {

  // opencv 3.4.1
  implementation 'com.quickbirdstudios:opencv:3.4.1'
  
  // opencv 3.4.4 with contribution packages
  implementation 'com.quickbirdstudios:opencv:3.4.4-contrib'
  
  // opencv 3.4.5
  implementation 'com.quickbirdstudios:opencv:3.4.5'
 
  // opencv 4.0.1
  implementation 'com.quickbirdstudios:opencv:4.0.1'
  
  // opencv 4.1.0
  implementation 'com.quickbirdstudios:opencv:4.1.0'
  
  // opencv 4.1.0 with contribution packages
  implementation 'com.quickbirdstudios:opencv:4.1.0-contrib'
  
  // opencv 4.2.0
  implementation 'com.quickbirdstudios:opencv:4.2.0'
  
  // opencv 4.2.0 with contribution packages
  implementation 'com.quickbirdstudios:opencv:4.2.0-contrib'
  
  // opencv 4.3.0
  implementation 'com.quickbirdstudios:opencv:4.3.0'
  
  // opencv 4.3.0 with contribution packages
  implementation 'com.quickbirdstudios:opencv:4.3.0-contrib'
}

and this in your project's build.gradle repositories section

repositories {
  jcenter()
}

Don't forget to also initialize OpenCV with a statement like this e.g. in your Application class:

if (!OpenCVLoader.initDebug())
   Log.e("OpenCv", "Unable to load OpenCV");
else
   Log.d("OpenCv", "OpenCV loaded");

About

Easy way to integrate OpenCv into your Android project via Gradle

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 63.7%
  • Java 28.1%
  • CMake 4.7%
  • C 3.2%
  • Objective-C 0.1%
  • HTML 0.1%
  • Other 0.1%