I am trying to install and use OpenCV library for python development. I want to use it for PyCharm IDE. I am trying to do it without the package manager.
The environment is a windows 64 bit architecture. For Python I am using Python 2.7.10.
I have already included the OpenCV directory in the system path.
I am using python 2.7.10 interpreter for PyCharm and have installed the pip and numpy packages.
opencv version is 3.0.0
How do I enable OpenCV and make it working in PyCharm?
I finally figured out on how to solve this issue:
Steps to follow:
- Install Python 2.7.10
- Install Pycharm(If you have not done it already)
- Download and install the OpenCV executable.
- Add OpenCV in the system path(%OPENCV_DIR% = /path/of/opencv/directory)
- Goto C:\opencv\build\python\2.7\x86 folder and copy cv2.pyd file.
- Goto C:\Python27\DLLs directory and paste the cv2.pyd file.
- Goto C:\Python27\Lib\site-packages directory and paste the cv2.pyd file.
- Goto PyCharm IDE and goto DefaultSettings>PythonInterpreter.
- Select the Python which you have installed on Step1.
- Install the packages numpy,matplotlib and pip in pycharm.
- Restart your PyCharm.
- PyCharm now has OpenCV library installed and working.