Last active
September 9, 2018 02:41
-
-
Save kevinkirkup/e061a244e8133ff450b7965bdea8cecb to your computer and use it in GitHub Desktop.
Install OpenCV with Homebrew on macOS Sierra
This file contains hidden or 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
| #!/usr/bin/sh | |
| # https://github.com/Homebrew/homebrew-science/issues/4104 | |
| brew reinstall opencv3 --HEAD --with-ffmpeg --with-tbb --with-contrib | |
| # Since this is keg only, create a pth file to include the python bindings in the python path | |
| echo /usr/local/opt/opencv3/lib/python2.7/site-packages >> /usr/local/lib/python2.7/site-packages/opencv3.pth | |
| mkdir -p /Users/<user>/Library/Python/2.7/lib/python/site-packages | |
| echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/<user>/Library/Python/2.7/lib/python/site-packages/homebrew.pth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://youtu.be/RM7QZQ76I8Y