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
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
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://
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
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
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