Re: Webcams and python

2007-03-18 Thread sturlamolden
On Mar 18, 8:01 pm, "Synt4x" <[EMAIL PROTECTED]> wrote: > I haven't been able to find the win32api extension, but i've read on > the web that time.sleep() calls win32api.Sleep(). I tested VideoCapture using PyGame to draw the graphics. PyGame wraps SDL which uses DirectDraw on Windows. I don't t

Re: Webcams and python

2007-03-18 Thread Synt4x
On 18 mar, 14:17, "sturlamolden" <[EMAIL PROTECTED]> wrote: > On Mar 18, 3:41 pm, "Synt4x" <[EMAIL PROTECTED]> wrote: > > > The problem with adding a sleep() instrucction is that the "video > > feed" looks lagged, if you know what I mean. It looks interrupted. > > You could try win32api.Sleep(0) in

Re: Webcams and python

2007-03-18 Thread sturlamolden
On Mar 18, 3:41 pm, "Synt4x" <[EMAIL PROTECTED]> wrote: > The problem with adding a sleep() instrucction is that the "video > feed" looks lagged, if you know what I mean. It looks interrupted. You could try win32api.Sleep(0) instead, which will release the reminder of the time slice. -- http://

Re: Webcams and python

2007-03-18 Thread Synt4x
On 18 mar, 04:24, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]>, Synt4x wrote: > > from VideoCapture import Device > > cam = Device() > > > while 1: > > img = cam.getImage() > > > Now, by doing this, my processor fires up to 100% load, which > > obviously makes my

Re: Webcams and python

2007-03-18 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Synt4x wrote: > from VideoCapture import Device > cam = Device() > > while 1: > img = cam.getImage() > > Now, by doing this, my processor fires up to 100% load, which > obviously makes my pc useless. > > Is there any way or algorithm to lower the cpu load? Just thro

Webcams and python

2007-03-17 Thread Synt4x
I'm using VideoCapture in windows to obtain images from my webcam. The thing is, if i want to show a live video from my webcam i have to make an infinite loop and request an image everytime: from VideoCapture import Device cam = Device() while 1: img = cam.getImage() Now, by doing this, my p