macOS Install OpenCV

  1. Download cmake https://cmake.org/download/
$ ./configure
$ make
$ make install
  1. Download opencv http://opencv.org/downloads.html
$ mkdir release
$ cd release
$ cmake -DBUILD_opencv_videoio=OFF -DBUILD_SHARED_LIBS=OFF .. 
$ make
$ make install
  1. Add to Environment
$ vi ~/.profile
export PYTHONPATH=/usr/local/lib/python2.7/site-packages/

你可能感兴趣的:(macOS Install OpenCV)