编译得到OpenCv+Contrib SDK for android
来源:互联网 发布:淘宝网孕妇保暖上衣 编辑:程序博客网 时间:2024/04/29 15:09
来自:http://tzutalin.blogspot.jp/2016/01/installing-opencv-310-and-contrib-lib.html
Build and install OpenCV and contrib lib on Ubuntu / Android
I am going to show you how to clone the opencv source from Git repository. After cloing the source, I will build and install it.
Build for ubuntu
Download the source of opencv and opencv_contrib from github and checkout to the tag, 3.1.0:Use cmake:
If your environment contains CUDA, by default, it will build it with CUDA. If you don't want to build it with CUDA, add
Start to build and install to /usr/local/include and /usr/local/lib. You can change the installed dir by change CMAKE_INSTALL_PREFIX
-DWITH_CUDA=OFF
to your cmake
command line.Start to build and install to /usr/local/include and /usr/local/lib. You can change the installed dir by change CMAKE_INSTALL_PREFIX
You can check your current opencv version:
$ pkg-config --modversion opencv
It will be 3.1.0 !
You can also look at the headers or libs installed. Using pkg-config can tell you where they are:
$ pkg-config --cflags opencv
$ pkg-config --libs opencv
$ pkg-config --libs opencv
Actually, you can use the latest stable OpenCV version available in sourceforge without building the source.
How to speed up building process?
You can use Ninja to speed up instead of using Makefile
Build for Android version:
You can change your target API in build_android_opencv.sh. For example, you can build the target for arm by changing the variable, ANDROID_ABI, in build_android_opencv.sh which you clone from the above commands.
The final output will be installed and located in ~/<my_working _directory>/android_opencv/
Alternatively, you can refer to https://github.com/tzutalin/build-opencv-for-android
References:
http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk
http://docs.opencv.org/3.1-beta/doc/tutorials/introduction/linux_install/linux_install.html
https://github.com/Itseez/opencv/wiki/Building_OpenCV4Android_from_trunk
https://github.com/alexkarargyris/Caffe_OpenCV_Android_App
NDK Download
https://github.com/tzutalin/android-ndk-downloader 0 0
- 编译得到OpenCv+Contrib SDK for android
- Vs2015+opencv+contrib sdk 编译过程
- opencv和opencv-contrib android版编译
- opencv编译contrib部分
- OpenCV For Android SDK
- OpenCV For Android SDK
- opencv for android 编译
- 编译opencv for android
- 编译OpenCV for Android
- 编译Python-(Opencv+Contrib)-Ubuntu16.04
- Opencv for linux android编译
- 编译并使用带有OpenCL模块的OpenCV for android SDK
- Window7 下编译Opencv 3.3+contrib模块+Cmake+VS2015
- opencv编译安装contrib包的注意事项和错误解决
- ubuntu16.04编译opencv for Android
- opencv for android SDK 导入目录空间报错
- opencv contrib怎么用
- OpenCV Contrib Modules
- sapui5 table不显示Table数据
- 对 粒子滤波算法原理 的介绍,通俗易懂
- 2017
- 在html文件中引入另一html文件,实现代码复用
- WaitForSingleObject的用法
- 编译得到OpenCv+Contrib SDK for android
- javascript基础(JSON的使用和低版本IE的兼容)(四十七)
- Android GPS定位
- java开发相关下载
- c++之指针作为函数参数传递的问题
- java一个简单的根据身份证号码获取该人的出生年月日和性别
- 关于两个日期的时间差 java android
- Asp.net MVC——httppost与httpget注意事项
- Struts2 获取session 存入list 到session中