Jump to content


Photo

Install opencv on mac


  • Please log in to reply
1 reply to this topic

#1 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 17 November 2015 - 06:37 PM

http://www.learnopen...te-osx-10-10-x/



#2 jim

jim

    Advanced Member

  • Administrators
  • 3,385 posts

Posted 17 November 2015 - 07:08 PM

Based on http://jjyap.wordpre...python-support/

  1. edit .bashrc or .bash_profile to include: export PATH="/Library/Frameworks/Python.framework/Versions/Current/bin:/Library/Python/2.7/site-packages/:$PATH"
  2. brew update
  3. brew tap homebrew/science
  4. brew install opencv
  5. cd /Library/Python/2.7/site-packages/
  6. ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv.py cv.py
  7. ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv2.so cv2.so

To verify, run python and try import cv2. If it doesn’t throw a No module named cv2 error, you’re good.

 

 

 

This solve the import cv2 error






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users