3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Using openCV 1.0 with python 2.5 in Windows XP

Using openCV 1.0 with python 2.5 in Windows XP
I had a hard time getting openCV(open Computer Vision, by Intel) working with python 2.5, here are instructions and files on how to get this working easily!

We will assume you have python 2.5 installed (from the link above) I will walk through the now fairly straight forward openCV installation process.

ABOUT OPENCV:
"The Open Computer Vision Library is a collection of algorithms and sample code for various computer vision problems."
Basically it has a bunch of tools that let you analyze picture files and live video from a source such as a webcam. I am currently working on a robot for defcon 15.
 
Remove these adsRemove these ads by Signing Up
 

Step 1Navigate your directories

Navigate your directories
Find out where you have python installed, it is by default C:\Python25\

Once you are there look for 'Lib', inside Lib there should be another directory called 'site-packages'
On this computer I have no other packages installed for python, so it is empty besides a README.txt
« Previous StepDownload PDFView All StepsNext Step »
19 comments
Dec 16, 2010. 9:46 PMComputothought says:
ubuntu:
sudo apt-get install opencv-doc python-opencv
Apr 30, 2010. 2:36 PMBillRice says:
Thanks a lot! Very helpful. Just wondering, does anyone know if openCV 2 works in python 2.5, and if  there are strong reasons to run the new version?
May 14, 2010. 12:54 PMsoeinegaudi says:
I am having real trubles at the moment with 2.1 !!
First of all, so many things have changed and secondley for some reason the applications I get to work only cause dead windows, that make your screen freeze....
so if you're doing fine with the old version, don't destroy it !!!
if by any chance you know how to juse the new version I'd be glad if you could help me out (I'm really frustrated right now :( ).
Feb 12, 2010. 8:35 AMpuzzledqs says:
Many Thanks! I didn't have VS2003 installed on my computer, so I failed to complie the python interface myself. I was really ftrustrated... Finally, I get it done with your solution, THX!!!
Jan 5, 2010. 7:45 PMnakatazhu says:
 thanks
Oct 13, 2009. 8:58 PMkarthikmuthuswamy says:
Thanks for this article. I believe this would not work with Python 2.6. I installed 2.6.3 on my XP. It worked really good once I installed Python 2.5. Really good work and nice of you to have shared this library with the rest of the world!!
Sep 5, 2009. 10:39 AMyamandu says:
Really thanks guy! Finally got it!
Aug 13, 2009. 3:16 PMbenmargolis says:
Hi Nak, I'm getting a strange error, and I was wondering if yo had any ideas what I might be missing. When I try to run one of the samples, I get: Traceback (most recent call last): File "C:\Program Files\OpenCV\samples\python\squares.py", line 8, in from opencv.cv import * File "C:\Python26\lib\site-packages\opencv\__init__.py", line 55, in from cv import * File "C:\Python26\lib\site-packages\opencv\cv.py", line 5, in import _cv ImportError: DLL load failed: The specified module could not be found. I trie dgoogling it, but all I found was to make sure the *.dll's are in the system path, which they are. Do you have any ideas? Thanks,
Aug 13, 2009. 6:38 PMbenmargolis says:
Brilliant! Thank you. I saw some comment that said it worked for 2.6, but it didn't for me. Switching to 2.5 fixed it.
Jul 10, 2009. 7:38 PMnolanamy says:
Seriously, thank you. I'm not sure if this is the ideal solution (i.e., maybe Python 2.6 is better than 2.5), but it works. After four hours of frustration trying to figure it out, I found this... took 5 minutes.
Dec 23, 2008. 2:48 AMselvakumarmuthusamy says:
I have a doubt , can we use the same in vista also. I think it doesn't work. I tried. It says, side-by-side configuration error. Can you or anybody have any idea about this? I need to use it in vista without having MS Visual Studio.
Dec 12, 2008. 1:31 AMselvakumarmuthusamy says:
Hi, Really wonderful work. Thank you very much
Nov 28, 2008. 12:19 PMrob0 says:
Thanks! This saved me a lot of time hunting - worked great!
Jul 30, 2008. 9:37 PMFeanaro says:
Thank you for this instructable. I had been looking for a way to get openCV working with python and it just would not work. Cheers mate
Apr 5, 2007. 2:02 PMalexsolex says:
Hi I think I can be interested with this. Can you give us some examples of applications ?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
37
Followers
13
Author:nak(AboveSoBelow)
Twitter: @uberscientist