motion detection quick howto, plus pictures

James Cameron quozl at us.netrek.org
Tue Feb 6 02:35:34 EST 2007


G'day,

Some new photographs of rural range testing are up.

http://dev.laptop.org/~quozl/2007-02-06/images.html

So what's with the last couple of photographs?  Spotted a few mice
around the outback house, so deployed three units to watch where they
are coming in.  Camera used with motion detecting software.

Used http://motion.sourceforge.net/ SVN revision 170, which has V4L2 API
support, since the cafe_ccic driver is V4L2.  Built motion using a
chroot Debian Etch on a USB disk, then copied the required libraries and
set LD_LIBRARY_PATH appropriately.

# setup build environment
debootstrap etch /mnt/etch
chroot /mnt/etch
apt-get build-dep motion

# obtain sources
apt-get install subversion
svn co http://www.lavrsen.dk/svn/motion/trunk .

# build
./configure
make
make install

# binary cross-packaging
ldd /usr/local/bin/motion | awk '{print $3}' | grep lib > libs
mkdir /tmp/motion
cp `cat libs` /tmp/motion
cp /usr/local/bin/motion /tmp/motion
exit

# running it
cd /mnt/etch/tmp/motion
LD_LIBRARY_PATH=/lib:. ./motion

Output shown at http://dev.laptop.org/~quozl/motion.log
Every hand-wave captured as a JPG file.

Thanks to Angel Carpintero on the #motion IRC channel on freenode for
assistance.

-- 
James Cameron    mailto:quozl at us.netrek.org     http://quozl.netrek.org/



More information about the Devel mailing list