Date: Mon, 16 Dec 1996 10:26:19 +0100 (MET) From: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de> To: rnw+@andrew.cmu.edu (Robert N Watson) Cc: freebsd-questions@freefall.freebsd.org Subject: Re: B/W Quickcam information? Message-ID: <199612160926.KAA12335@gilberto.physik.rwth-aachen.de> In-Reply-To: <4mh8RDG00YUu08TCA0@andrew.cmu.edu> from Robert N Watson at "Dec 15, 96 06:18:39 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> > I noticed that the 2.1.5 release notes (and not surprisingly, the kernel > :) list support for the quickcam -- is there software available that can > be used to grab frames from it from the command line? I'd be interested > in grabbing images from it every 5 minutes and putting them on the web > in an unattended manner using crontab/etc.. Unfortunately, I'm a bit > squeezed for time as I'm leaving town for several weeks on Tuesday so > would like to pick it up Monday as long as I know it can do what I need. > I visited the third-party developers page and found references to vic > and nv but have never used these before so am unsure of their function > or compatibility. This snippet (originally from Seppo Kallio?) does probably what you want: ------- #!/bin/csh set valo = 170 # start -w from 170 set count = 1 # do not loop forever set contrast = 220 set a=999999 set bright=150 1: echo $valo $count $a /usr/sbin/qcamcontrol -b $bright -c $contrast -w $valo -x 320 -y 240 >! /tmp/qcam.ppm set a = `/usr/bin/hexdump -cv /tmp/qcam.ppm | grep "\?" | wc -c` if ( $a > 200000 ) then @ valo = $valo - 10 @ count = $count - 1 if ( $count == 0 ) then exit 1 endif goto 1 endif ppmtogif /tmp/qcam.ppm >/tmp/qcam.gif xv /tmp/qcam.gif ------- Your values may vary. Also I've learnt that the white balance is a fixed value which is unique for every camera instance and maybe it's better to vary the brightness value. Anyway, you have something to start from. > > Thanks in advance for any help.. > Robert Watson > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612160926.KAA12335>