I am using Python bindings to OpenCV 2.4 installed with the following instructions .
My problem is similar to this , but I need a solution for Windows.
Problem: when I try to use
cap = cv2.VideoCapture(0) print cap.grab()
it works fine but the following code
cap = cv2.VideoCapture(filename) print cap.grab()
always return false.
The file path is correct, absolute, and has no spaces.
I tried on two machines with Windows XP and Windows 7 with similar results. On Linux (Ubuntu), it works great for me.
python windows opencv
Bihaqo Jul 28 '12 at 7:55 2012-07-28 07:55
source share