[Python] OpenCV on Mac

不知為何從 source 安裝 OpenCV 之後,找不到 cv2.so。
所以這裡使用 brew 來安裝:

安裝完後,必須將 cv2 的路徑加入到 PYTHONPATH 裡面。
我的路徑在這裡:
/usr/local/Cellar/opencv/2.4.11_1/lib/python2.7/site-packages

參考資料:

This entry was posted in Python, 程式設計 and tagged , , . Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.