leadrien / opencv_native_androidstudio

An android studio project with native Opencv
320 stars 120 forks source link

Native OpenCV with Android Studio

This application is a sample Android Studio project with native OpenCV.

It gets the camera frames, make JNI calls with its gray matrices references as parameters, add some random noise to the images from a C++ method, and render the generated frames.

It works with Android Studio 3+

Last included OpenCV version: 3.4

Usage

Here is how to use this project to run native OpenCV code.

How to create the native OpenCV project from scratch

Here is how I made this project. If you simply want to run openCV with NDK support, use the previous Usage chapter. If you want to build the full project from scratch, you can follow the steps in this chapter.