Why an avi file can not be opened in OpenCV-Python
问题 I installed OpenCV vers. 2.4.7.2 on a Windows Vista (32-bit) platform, with no reported errors. Then the following file: C:\opencv\build\python\2.7\x86\cv2.pyd was moved to: C:\python27\Lib\site-packages\ I have been testing openCV with both images and video (*.avi) files. I have no problems (yet) when working with images. However, I have found a problem when trying to open avieo files. First, an example that works fine: import cv2 path = 'D:/Videos/' video = 'julius.avi' # a test avi