Install Video Reader Opencv For Mac

**OpenCV is now at 3.0.0!:), I will write up a guide on that when I get around to installing it *Here is the updated version of my previous post since Brew finally added the most recent version of OpenCV! First of all I’ll be using the package manager Homebrew to simplify things, you can get it here: The reason I’ve decided to use Homebrew was because it installs packages into their own directory which makes everything nice and easy to find. I tried macports but didn’t like it. Once you have brew installed you can go ahead and and add homebrew/science which is where OpenCV is located using: brew tap homebrew/science 3. If you want to see other possible options such as when compiling (such as using tbb) you can use info brew info opencv Go ahead and install OpenCV now brew install opencv 4.

Dec 31, 2014  Hi guys! This tutorial is on the most efficient way to install OpenCV onto Mac OSX 10.11 (El Capitan). I am using OpenCV 2.4.9 at the time of recording.

You can find OpenCV at cd /usr/local/Cellar/opencv/2.4.9/ Setting up Python 1. Navigate to your python path, if you don’t know where it is when you installed Python you can find it in your.bash_profile or using cat ~/.bash_profile grep PYTHONPATH in my case we’ll be using cd /Library/Python/2.7/site-packages/ 2.

Once there we need to link our compiled OpenCV files, create a symlink using ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv.py cv.py ln -s /usr/local/Cellar/opencv/2.4.9/lib/python2.7/site-packages/cv2.so cv2.so 3. You can make sure it works by running python and typing import cv.

Says: dylib file missing error. Says: I had this issue as well. I ran brew uninstall opencv and then did the following: # brew doctor # Note: Resolve ALL issues present in brew doctor. # # Brew doctor may ask you to change the perms on /usr/local/lib/pkgconfig: # Do sudo chown -R [YOUR COMPUTER USERNAME]:admin /usr/local # () # # You may have to link python (brew link python) to make sure the python shell evokes the brew version of python # If you haven’t even installed brew’s version of python, run brew install python # # As the doctor suggests, you may have to run echo export PATH=’/usr/local/bin:$PATH’ >> ~/.bash_profile # Note, whenever you change ~/.bash_profile, you should start working in a new terminal window. # # You may have to remove unnecessary.dylib,.pc, and.a files # () # # brew tap homebrew/science # brew install opencv # brew link opencv # brew doctor # Note: Resolve all issues present in brew doctor (AGAIN).

# # You may have to link a bunch of dependencies of opencv including libpng (brew link libpng) # # Open the python shell and try import cv2 # (from ) Hope that helps. Says: Further notes on my attempt to use the instructions given: 1. Mac word shortcut keys. The article suggests using the command “cat ~/.bash_profile grep PYTHONPATH” to locate the installed Python. Ignoring the fact that virtual environments can mean there are many Pythons installed, the PYTHONPATH environment variable does not in any way locate the installed Python. If you want to know where your current Python is, “which python” will do that. There is no /usr/local/Cellar/opencv/2.4.9/lib/python2.7/ directory on my system after installation of OpenCV using brew. I do see usr/local/Cellar/opencv/2.4.9/lib/ but it has no “python*” subdirectory.

Please let me know if you’d like me to raise these issues against the project – I an guessing things may have moved on a little since you wrote the article. Says: Your computer is getting hot because you’re compiling opencv, it takes quite a long time so just leave your laptop and go watch a movie and come back in a few hours. You could also use your hot laptop as an electric blanket, or as a warming for plate when you make too much pizza but know you’ll get hungry in an hour from all this installing, put your coffee on the palm rest to keep it warm while you play tower defense games on miniclip, read a book while you wait but make sure it doesn’t touch your laptop and catch fire, call Tim Cook and tell him what you think about the iWatch, maybe go camping and bring your laptop as a portable always-lit fire starter. Hope this helps if you need more ideas please let me know.