Wednesday, 22 April 2015

OpenCV-Python Installation On Windows 8 (64-bit)...

Installation of Opencv-python on windows 8 (64-bit) platform is easy. However, due to lack of proper documentation, it seems to be difficult and tedious.

Please follow the steps carefully.
steps:
Step I-  Download Python-2.7.x from Python-2.7.9.32bit. Note : Use 32-bit version as 64-bit version may cause some issues later.
Step II-  Download Numpy from numpy-32bit.
STEP II- Install above two software and direct to default paths by double clicking.
Step IV- Download and install  OpenCV from Opencv.
After installation your C-drive should have these two extra folders namely,
             a)opencv
             b)Python27
Step V- Copy all files from C:\opencv\build\python\2.7\x86 to  C:\Python27\Lib\site-packages. (There is only on .py file though.)
Step VI- Set the environment variables. For that
Type Control Panel->Advanced system settings-> Environment variables->System variables->Path->Edit. Add these lines there after semicolon.

 C:\Python27;C:\Python27\Lib\site-packages\;C:\Python27\Scripts\;

Then click on Ok->Ok->Ok.





Step VII-Type IDLE to search panel to verify correct installation
 Type  print "Welcome to Python". you will get out as shown if installation went well.

Step VIII- open "cmd" and run this file ez_setup.py (Available at ez_setup).


 Now you are all set to run opencv-python-image-processing code using python IDLE.
If you have any doubt feel free to comment below.