Auto install opencv after installing Ubuntu
来源:互联网 发布:天魂网络 编辑:程序博客网 时间:2024/05/21 19:23
Here is the shell code
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
How to do
- step1: copy this into a file named installOpencv.sh
- step2:
- 1
- 1
- step3:
- 1
- 2
- 1
- 2
step4: check your file directory, it should be like this:
—–installOpencv.sh
—–OpenCV
—–opencv_contribstep5: edit installOpencv.sh, change OPENCV_EXTRA_MODULES_PATH to your own.
step6: ./installOpencv.sh
You may need to input password when sudo make install, because compiling opencv costs much time.
You may notice that there is a test demo for opencv. It is simple test of using opencv to show an image. After installation, this test demo will be deleted.
Version 2
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
In this shell, you still need to change OPENCV_EXTRA_MODULES_PATH to your own. It will Git clone opencv src automatically.
Problem
- “Unable to fetch http://….” You need to change your apt source in /etc/apt/sources.list. Different version of ubuntu uses different nickname, and the others are the same. For 16.04, it is xenial. Without essential packages correctly installed, it will get error when compiling opencv. It is important.
0 0
- Auto install opencv after installing Ubuntu
- Auto install opencv after installing Ubuntu
- Install vim after installing ubuntu
- Ubuntu auto install bochs
- Ten things after installing Ubuntu 12.04
- Install sdk after 1.6(Ubuntu)
- Config firefox after install ubuntu
- Installing OpenCV 2.1 in Ubuntu
- Installing OpenCV 2.1 in Ubuntu
- Installing OpenCV 2.1 in Ubuntu
- ubuntu qt opencv install
- ubuntu install opencv
- opencv install for ubuntu
- ubuntu anaconda install opencv
- 30 Things I did After Installing Ubuntu 13.04 Raring Ringtail
- The 21th-30th things after installing Ubuntu 12.04
- Top Things to do After Installing Ubuntu 13.04 Raring Ringtail
- ubuntu 11.10 Things to tweak after install
- MYSQL基础1
- iOS UITableViewCell点击效果,点击后消失
- 1052 (未完成)
- PHP 亚洲常用时区编码
- ARPSpoofing、arp欺骗性攻击、arpspoof源码分析
- Auto install opencv after installing Ubuntu
- Android 数据库框架ormlite 使用精要
- ASP.Net刷新页面后自动滚动到原来位置方法汇总
- windows下忘记MySQL密码的修改方法
- leetcode
- 浅谈单例模式
- leetcode
- 初始化类时的加载顺序
- defer和async