首页 > 代码库 > MAC pro 安装opencv2

MAC pro 安装opencv2

Install OpenCV 2 on Mac OSX

  安装numpy,scipy

brew tap homebrew/science
brew install opencv

Set up Python by creating a couple of symlinks.

cd /Library/Python/2.7/site-packages/
ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv.py cv.py
ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv2.so cv2.so

 如果从源码安装会麻烦,这样安装很简单好用

MAC pro 安装opencv2