Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Video over the Network

I have a laptop running Windows 7 with Python 2.7. I have a webcam attached to the laptop. The laptop has no other webcam. The video is transmitted from this webcam using Yawcam software. The software can transmit videos in streaming , http and ftp protocols. I have arduino micro controller attached to it. I also have a python / twisted socket server running on it to communicate with my desktop. In my desktop I also have windows , python and openCV installed. I want to grab this video in real time and do image processing on it. I used this code to grab the video but with no success

import as cv

cv.NamedWindow("camera", 1)
capture = cv.CaptureFromCAM("ftp://@");
##capture = cv.CaptureFromCAM(0);
while True:
    img = cv.QueryFrame(capture)
    cv.ShowImage("camera", img)
    if cv.WaitKey(10) == 27:

Ideally i wanted to have openCV in my laptop and transmit videos in realtime using websockets . But I have no clue of doing it. Please help. The best solution would be having openCV at both the ends without any commercial software.