Webcams and python

Synt4x ianmurrays at gmail.com
Sat Mar 17 21:51:14 EDT 2007


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 processor fires up to 100% load, which
obviously makes my pc useless.

Is there any way or algorithm to lower the cpu load?

Thx.




More information about the Python-list mailing list