- Mastering OpenCV Android Application Programming
- Salil Kapur Nisarg Thakkar
- 250字
- 2021-07-16 13:36:47
Setting up OpenCV
OpenCV is the short form of Open Source Computer Vision library. It is the most widely used computer vision library. It is a collection of commonly used functions that perform operations related to computer vision. OpenCV has been natively written in C/C++, but has wrappers for Python, Java, and any JVM language, which is designed to create the Java byte code, such as Scala and Clojure. Since most of the Android app development is done in C++/Java, OpenCV has also been ported as an SDK that developers can use to implement it in their apps and make them vision enabled.
We will now take a look at how to get started with setting up OpenCV for the Android platform, and start our journey. We will use Android Studio as our IDE of choice, but any other IDE should work just as well with slight modifications. Follow these steps in order to get started:
- Download Android Studio from https://developer.android.com/sdk/ and OpenCV4Android SDK from http://sourceforge.net/projects/opencvlibrary/files/opencv-android/.
- Extract the two files to a known location.
- Create a normal Android Project and name it
FirstOpenCVApp
. Navigate to File | Import. - Select the
OpenCV_SDK_location/sdk/java/
directory. - Navigate to Build | Rebuild Project.
- Navigate to File | Project Structure.
- Add the OpenCV module to your app by selecting the app module in the left column. Click on the green in the dependencies tab, and finally, select the OpenCV module.
- You are now ready to use OpenCV in your Android project. It should look like this:

- Power Up Your PowToon Studio Project
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- DevOps入門與實踐
- Java FX應用開發教程
- Python網絡爬蟲從入門到實踐(第2版)
- 從0到1:HTML+CSS快速上手
- Hadoop+Spark大數據分析實戰
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- Getting Started with Python Data Analysis
- 程序是怎樣跑起來的(第3版)
- Learning Unity 2D Game Development by Example
- Clojure Reactive Programming
- Python Data Structures and Algorithms
- INSTANT Silverlight 5 Animation
- Python 3.7從入門到精通(視頻教學版)