Wednesday, 16 August 2017

Installing OpenCV on Windows



Before we get started with OpenCV, we need to choose a language. OpenCV supports C, C++, Python and Java.
Out of these, I would recommend Python as it is a very simple language and easy to understand.

So let's set up OpenCV with Python!

  1. Download Python 2.7.x from the official site
  2. Next we need to install some modules which we are going to use along with OpenCV. Instead of downloading them one by one, you can use anaconda to install all the SciPy packages.
  3. After installing everything open your python terminal. Enter import numpy and check that Numpy has been properly installed.
  4. Download OpenCV realease from here and run the executable.
  5.  Goto opencv/build/python/2.7 folder.
  6. Copy cv2.pyd to C:/Python27/lib/site-packages.
  7. Open Python terminal and enter import cv2 
  8. If the cv2 module is imported then you have installed OpenCV successfully. :) 
 

No comments:

Post a Comment

Installing OpenCV on Linux

To install OpenCV in Debain/Ubuntu systems: Go to the following link and save the bash script on your system: bash script Open your te...