Using a Webcam in Python

Hey there! I'm working on trying to create a video screen in a gui
using either Tkinter or wxPython with the video from a usb webcam,
basically as an alternative to the default software that displays it.

So far, I've searched the web for many different things without much
luck. I've come across two things, the VideoCapture module, and the
WebcamSpy module. The WebcamSpy is nice and essentially I'm trying to
just create the video screen that it already has. Is this possible
with the VideoCapture module? I've looked at the source and all I see
are the .getImage() and .saveSnapshot() methods, which makes me think
it is only for retrieving single images. Do I need to setup a system
that uses the .getImage method 30 times a second in order to create a
30fps video? I feel like this would run extremely slow!

Also, is there a way to manually access the data stream from the
webcam with python? I've looked at the io module but couldn't really
make much sense out of that because it seems that only works with
opening files. I don't want to continuously save and open files I
just want the actual video stream.

I'm a beginner to Python, sorry for so many questions!

···

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en

Hmm those are interesting but they seem to be doing something
different and are packages that need to be built or compiled.

···

On May 13, 7:14 pm, "GadgetSteve" <gadgetst...@live.co.uk> wrote:

--------------------------------------------------
From: "Kevin" <krb...@gmail.com>
Sent: Thursday, May 13, 2010 11:58 PM
To: "wxPython-users" <wxpython-users@googlegroups.com>
Subject: [wxPython-users] Using a Webcam in Python

> Hey there! I'm working on trying to create a video screen in a gui
> using either Tkinter or wxPython with the video from a usb webcam,
> basically as an alternative to the default software that displays it.

> So far, I've searched the web for many different things without much
> luck. I've come across two things, the VideoCapture module, and the
> WebcamSpy module. The WebcamSpy is nice and essentially I'm trying to
> just create the video screen that it already has. Is this possible
> with the VideoCapture module? I've looked at the source and all I see
> are the .getImage() and .saveSnapshot() methods, which makes me think
> it is only for retrieving single images. Do I need to setup a system
> that uses the .getImage method 30 times a second in order to create a
> 30fps video? I feel like this would run extremely slow!

> Also, is there a way to manually access the data stream from the
> webcam with python? I've looked at the io module but couldn't really
> make much sense out of that because it seems that only works with
> opening files. I don't want to continuously save and open files I
> just want the actual video stream.

> I'm a beginner to Python, sorry for so many questions!

You might like to take a look at Python Computer Vision,pycv · PyPI, and Open Computer Vision,http://opencv.willowgarage.com/wiki/

Gadget/Steve

> --
> To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
> or visithttp://groups.google.com/group/wxPython-users?hl=en

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visithttp://groups.google.com/group/wxPython-users?hl=en

--
To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com
or visit http://groups.google.com/group/wxPython-users?hl=en