Please Help: Installing OpenCV

Hello JetBrains community,
I am relatively new to python, PyCharm, and Mac OS X and am having trouble getting PyCharm to use the version of OpenCV that I have. I downloaded the .tar file and built it and now there's just an OpenCV folder just WAITING to be utilized, but I don't know how to get it "into" PyCharm.


I have OpenCV-2.4.8. I followed the instructions at the following site up until he started to get into the c++ section (build and installation only): http://tilomitra.com/opencv-on-mac-osx/

I now have the OpenCV folder sitting on my desktop and I don't know how to make PyCharm import it in. According to the install guide, it should be installed in the /usr/local/ directory.


1. I'm not really sure how to navigate there to make sure.

2. I don't think it is there anyway because "from opencv.cv import *" comes up with the error "no module named opencv.cv".

3. Is OpenCV a library or a module? I'm still learning the naming scheme..

Thanks in advance,
Danny
2 comments
Comment actions Permalink
Hi Danny,
the link you've posted says that it doesn't provide python binding. Maybe something like that helps you: http://www.guidefreitas.com/installing-opencv-2-4-2-on-mac-osx-mountain-lion-with-python-support
0
Comment actions Permalink
Thanks for you reply, Dmitry. I tried your method before coming here and that didn't work for me. I had to install cake, homebrew, opencv 2.4.8, and pyopencv in order to get it to work on my machine. It was difficult but I finally got it working. I have another issue now: How can I export a python 2.7.5 script with opencv modules as an executable file for a mac (.app) or .py file that will execute on a machine that does not have pyopencv? If you have any ideas, please let me know. Thanks in advance.
0

Please sign in to leave a comment.