# Sending webcam stream remotely for use in Python OpenCV

Hey, I'm trying to send a webcam stream to a remote computer for image processing. I would do the processing directly on the webcam computer, but it's ARM and pretty slow. Right now I have mjpg-streamer set up, which allows me to remotely access image files and a network stream. Originally I intended just to get a stream of individual images with an HTTP Request, but I'd like to use background subtraction which if I understand correctly requires a video stream.

Here's what I currently have, but it's pretty crude.

while(1):
urllib.urlretrieve("http://192.168.2.20:8080/?action=snapshot", "test.jpg")

im = Image.open('test.jpg')
im.save('test.jpg')