These are the steps to get started:
- Download open CV from this link
- Extract the file and get OpenCV-android-sdk folder
New --> Import Module --> choose OpenCV-android-sdk/sdk/java
, and modify the folder of the module folder to what you like, such as:opencv
- Open
opencv/build.gradle
change the version ofcompileSdkVersion
andbuildToolsVersion
to suit with your project. Presssync
gradle. - Right click
app
module.Choose Open module settings --> Choose Dependencies tab --> + --> module dependency --> opencv
- Copy
OpenCV-android-sdk/sdk/native/libs
, paste toapp/src/main
, and rename folder tojniLibs
Now, you can import and use OpenCV.
Comments
Post a Comment