Deploy OpenCV 3 with Python on macOS
Steps
- Install OpenCV 3 from homebrew
1 | brew install opencv3 --with-python3 |
- Link OpenCV library to site-packages of Python
ln -s /usr/local/Cellar/opencv3/3.0.0/lib/python2.7(3.4)/site-packages/cv2.so <path-to-your-python>/lib/pythonX.X/site-packages
- Test
1 | python |