trux_motion 1.0

trux_motion project is a program for detecting motion between two JPEG images.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
GPL (GNU General Public License) 
USER RATING:
1.5/5 19
DEVELOPED BY:
Truxton Fulton
HOMEPAGE:
www.truxton.com
CATEGORY:
ROOT \ Home Automation
trux_motion project is a program for detecting motion between two JPEG images.

trux_motion is a simple program for detecting motion between a pair of JPEG images. It uses the GD library to load the JPEGs.

It uses a simple, fairly fast algorithm for detecting motion.

Requirements:

GD

To use the program, invoke "motion" with 3 arguments: the names of two jpeg images, and a threshhold for motion, like this :

motion A.jpg B.jpg 1000

The threshhold is the number of active pixels, above which motion will be detected. If motion is detected, the result of the program will be zero, if no motion
is detected, the result will be nonzero. This allows you to create scripts with stuff like this :

motion A.jpg B.jpg 1000 && echo "MOTION DETECTED"

The threshhold to use depends on how much motion you want to detect. The algorithm is pretty good about squashing random pixel noise, so even a threshhold of
1 is useful if you want to detect the slightest movement.

Of course, the threshhold to use will also depend on the size of the images from your camera. I have a camera that generates 640*480 jpegs, so a threshhold of 1000 pixels means that 0.3% or more of the image must have changed before motion is detected.

Last updated on January 17th, 2007

#trux motion #simple program #detecting motion #trux_motion #detecting #motion #pair

Add your review!

SUBMIT