![]() Go to your python path by typing the code below: OpenCV will keep updating its version, so you might need to change the number of version rather that “2.4.12”. You can find your OpenCV at the code below. Then copy and paste the code below and enter: Under the bash shell, copy and paste the code below and enter: In case you have any problem installing, remember to go to the website and check the details. The following procedure is followed by the website here: You’ll need to type your password while installing. Now paste the code that you just copy and press enter. Go to your terminal, then type “bash” and press enter.You’ll be now using bash shell to install Homebrew. In this website, the only thing that you’ll need to do is to copy the code below: /usr/bin/ruby -e "$(curl -fsSL )" ![]() ![]() Homebrew includes some packages that Mac OSX doesn’t include, so it is better to install Homebrew and get the extra packages. Otherwise, there might be some errors installing. The version of OpenCV will keep updating, so in the following procedure you might need to change the version number. In my case, I’ll be installing OpenCV 2.4.12 and running python 2.7 on my Mac OSX. ![]() In this post, I am going to tell you how to install OpenCV on your Mac OSX, so that you can import cv in your python code.
0 Comments
Leave a Reply. |