I have installed OpenCV in Windows 7 (32 bit) and Put the cv2.pyd file in Python Modules Directory and everything is working just fine but except opening of Video file {I have tried 5-6 different kind of extensions but nothing is helping}
CODE::
import numpy as np
import cv2
cap = cv2.VideoCapture('vtest.avi')
while(cap.isOpened()):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
the line cap.isOpened() always returns False {i also tried providing absolute path to the video file} but that too return false
So please can please anybody help me that why that line is always returning False