Skip to content

Instantly share code, notes, and snippets.

@chrisvoncsefalvay
Last active November 7, 2016 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisvoncsefalvay/a55ec919f74bbcd032f43886c80a9915 to your computer and use it in GitHub Desktop.
Save chrisvoncsefalvay/a55ec919f74bbcd032f43886c80a9915 to your computer and use it in GitHub Desktop.
OpenCV installation script (OS X + Python 3.5 + OpenCV 3.1.0)
pip install --upgrade pip
pip install numpy scipy matplotlib scikit-learn
pip install -U scikit-image
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D PYTHON3_PACKAGES_PATH==~/.virtualenvs/cv3/lib/python3.5/site-packages \
-D PYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5m.dylib \
-D PYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.2_3/Frameworks/Python.framework/Versions/3.5/include/python3.5m \
-D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON \
-D BUILD_EXAMPLES=ON \
-D BUILD_opencv_python3=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment