Integrating OpenCV with Android: JNI Implementation and Library Usage
This guide details the steps to integrate OpenCV with an Android application using JNI (Java Native Interface). It covers the transformation of OpenCV source code to be used as a dynamic library in Android. The process includes building OpenCV sources, implementing necessary C/C++ header files (`jni.h`), and linking binary objects for seamless integration. Additionally, it explains the use of the built library with a focus on `CvCamera`, ensuring efficient use of OpenCV functionalities within an Android environment.
Integrating OpenCV with Android: JNI Implementation and Library Usage
E N D
Presentation Transcript
Java class java Java source dynamic library javac 7 2 1 6 javah linker 3 binary object C/C++ header 4 jni.h C/C++ source 5 compiler 그림4. JNI구현 순서
1. Build한 opencv source를 android에서 library로 사용 2. C언어로 구현된 opencvsource 3. CvCamera가 build된 library 4. Build한 opencv source를 android에서 library로 사용 그림 5 opencv –android 연동