I posted a very easy way to install OpenCV 2.4 for Python on Windows: Install OpenCV on Windows for Python
It is as simple as copying and pasting. I hope this will be useful for future viewers.
Download Python, Numpy, OpenCV from your official sites.
Extract OpenCV (will be extracted to the opencv folder)
Copy .. \ opencv \ build \ python \ x86 \ 2.7 \ cv2.pyd
Paste it into the folder C: \ Python27 \ Lib \ site-packages
Open Python id or terminal and type
>>> import cv2
If there were no errors, everything is in order.
UPDATE (thanks dana for this info):
If you use the VideoCapture function, you must copy opencv_ffmpeg.dll to your path. See: stack overflow.squite
Abid Rahman K Jun 02 2018-12-12T00: 00Z
source share