码迷,mamicode.com
首页 > 系统相关 > 详细

mac上安装opencv3

时间:2016-11-05 23:11:14      阅读:854      评论:0      收藏:0      [点我收藏+]

标签:and   不同   ted   uil   不同的   ffmpeg   imp   phi   code   

转载于:http://blog.csdn.net/sanwandoujiang/article/details/51159983

  1. 在macosx上安装opencv2
brew tap homebrew/science
brew install opencv
  • 1
  • 2
  1. 在macosx上安装opencv3 
brew tap homebrew/science
brew install opencv3
  • 1
  • 2

当然我们也可以有不同的选择,比如可以安装额外的模块 contrib cuda等

# Easy install for beginners
brew install opencv3 --with-contrib 
# For intermediate and advanced users. 
brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5
  1. 在macosx上安装opencv2
brew tap homebrew/science
brew install opencv
  • 1
  • 2
  1. 在macosx上安装opencv3 
brew tap homebrew/science
brew install opencv3
  • 1
  • 2

当然我们也可以有不同的选择,比如可以安装额外的模块 contrib cuda等

# Easy install for beginners
brew install opencv3 --with-contrib 
# For intermediate and advanced users. 
brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5
  1. 在macosx上安装opencv2
brew tap homebrew/science
brew install opencv
  • 1
  • 2
  1. 在macosx上安装opencv3 
brew tap homebrew/science
brew install opencv3
  • 1
  • 2

当然我们也可以有不同的选择,比如可以安装额外的模块 contrib cuda等

# Easy install for beginners
brew install opencv3 --with-contrib 
# For intermediate and advanced users. 
brew install opencv3 --with-contrib --with-cuda --with-ffmpeg --with-tbb --with-qt5

 

 

安装完毕结果:

 

opencv3 and opencv install many of the same files.

 

Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you‘ll need to add to your

build variables:

 

    LDFLAGS:  -L/usr/local/opt/opencv3/lib

    CPPFLAGS: -I/usr/local/opt/opencv3/include

    PKG_CONFIG_PATH: /usr/local/opt/opencv3/lib/pkgconfig

 

 

If you need Python to find bindings for this keg-only formula, run:

  echo /usr/local/opt/opencv3/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/opencv3.pth

  mkdir -p /Users/zhaoliang/Library/Python/2.7/lib/python/site-packages

  echo ‘import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")‘ >> /Users/zhaoliang/Library/Python/2.7/lib/python/site-packages/homebrew.pth

==> Summary

??  /usr/local/Cellar/opencv3/3.1.0_4: 486 files, 133.6M, built in 18 minutes 46 seconds

zhaoliangdeMacBook-Pro:Downloads zhaoliang$  

 

mac上安装opencv3

标签:and   不同   ted   uil   不同的   ffmpeg   imp   phi   code   

原文地址:http://www.cnblogs.com/zl0372/p/6034008.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!