Last active
November 7, 2016 00:54
-
-
Save chrisvoncsefalvay/a55ec919f74bbcd032f43886c80a9915 to your computer and use it in GitHub Desktop.
OpenCV installation script (OS X + Python 3.5 + OpenCV 3.1.0)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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