Giter Site home page Giter Site logo

loulansuiye / opencvandroidboilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prclibo/opencvandroidboilerplate

0.0 2.0 0.0 184 KB

A simple sample program to use OpenCV C++ code in Android project via JNI.

License: BSD 3-Clause "New" or "Revised" License

Makefile 10.31% C++ 12.66% Java 77.03%

opencvandroidboilerplate's Introduction

OpenCV4Android Boilerplate with JNI

This is a boilerplate Eclipse project for the OpenCV4Android API. This project includes a simple Android framework which accesses phone camera and processes it using the OpenCV4Android Java API. In addition, this project uses JNI to call a C++ implemented OpenCV function to process the input frame image.

Part of the code in this project is from OpenCV4Android official tutorial.

If you read Chinese, 请参考《OpenCV4Android+JNI开发快速上手入门》配合使用。

Quick Start

This project assumes that you are familiar with OpenCV development.

  1. Install everything.
  • Install Android development toolkit and Eclipse.
  • Download Android NDK.
  • Install OpenCV C++ library (You can find a bunch of tutorials of installing OpenCV for your OS from Google).
  • Download OpenCV4Android SDK, you should then load the OpenCV Library x.x.x project into your workspace.
  1. Configure the project.
  • Clone the project: git clone [email protected]:prclibo/OpenCVAndroidBoilerplate.git.
  • Load the project into your Eclipse by File > New > Project > Android Project from Existing Code.
  • Right click the project OpenCVAndroidBoilerplate in the Package Explorer in Eclipse and select Properties. Click Android in the Properties window and then add the OpenCV Library x.x.x into the Library list.
  1. Compile the native code (C++ code in the jni folder)
  • Open jni/Android.mk. Change <some_path> to the path of your downloaded OpenCV4Android SDK.
  • In a terminal window go to the jni/ folder, execute <some_path>/ndk-build, where <some_path> is the path you installed Android NDK. When you see some output as follows, the compilation is good. [armeabi-v7a] Install : libprocess_frame.so => libs/armeabi-v7a/libprocess_frame.so
  1. Now you can connect your phone and run your project in Eclipse.

Implement your own JNI code.

Coming soon.

Contact

[email protected]

opencvandroidboilerplate's People

Contributors

prclibo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.