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.gradlechange the version ofcompileSdkVersionandbuildToolsVersionto suit with your project. Presssyncgradle. - Right click
appmodule.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