- 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:

- Getting Started with Citrix XenApp? 7.6
- 程序員修煉之道:程序設(shè)計(jì)入門30講
- TypeScript Blueprints
- DevOps for Networking
- Learn Swift by Building Applications
- HTML5 and CSS3 Transition,Transformation,and Animation
- Python 3破冰人工智能:從入門到實(shí)戰(zhàn)
- UML 基礎(chǔ)與 Rose 建模案例(第3版)
- RISC-V體系結(jié)構(gòu)編程與實(shí)踐(第2版)
- Haskell Data Analysis Cookbook
- Python語言實(shí)用教程
- App Inventor少兒趣味編程動(dòng)手做
- 高效使用Greenplum:入門、進(jìn)階與數(shù)據(jù)中臺(tái)
- 透視C#核心技術(shù):系統(tǒng)架構(gòu)及移動(dòng)端開發(fā)
- Hadoop Blueprints