Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Webcams and python
- From: ianmurrays at gmail.com (Synt4x)
- Subject: Webcams and python
- Date: 18 Mar 2007 07:41:21 -0700
On 18 mar, 04:24, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote: > In <1174182674.500068.252... at p15g2000hsd.googlegroups.com>, 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 throw a small `time.sleep()` into the loop. > > Ciao, > Marc 'BlackJack' Rintsch The problem with adding a sleep() instrucction is that the "video feed" looks lagged, if you know what I mean. It looks interrupted.
- Follow-Ups:
- Webcams and python
- From: sturlamolden
- Webcams and python
- References:
- Webcams and python
- From: Synt4x
- Webcams and python
- From: Marc 'BlackJack' Rintsch
- Webcams and python
- Prev by Date: cannot start IDLE in WinXP
- Next by Date: GCC 4.1.2 installer for Python distutils compilation
- Previous by thread: Webcams and python
- Next by thread: Webcams and python
- Index(es):