Skip to content

Simple program for continous motion detection of png images

License

Notifications You must be signed in to change notification settings

Hexagon/surveil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surveil

Simple C-program for realtime motion detection of png images, without external dependencies (pnglite and miniz is included in source).

Installing

git clone https://github.com/Hexagon/surveil.git
cd surveil
make
sudo make install

Usage

Mode 1 - Continous motion detection

This program has two modes, in mode 1 (-o) it constantly polls the file provided by -c for changes in motion, and saves current frame to the file specified by -o.

Example: surveil --current /tmp/surveil.png --out "/home/motion/detections/motion_%F_%H%M%S.png" --sensitivity 21 --passes 7

  • --sensitivity represents the minimum change of intensity (0-255) to identify a change as motion.
  • --passes represents the number of passes of blob reduction (to reduce unwanted noise as snowflakes).

Mode 2 - Difference

Not as interesting as motion detection, I'll write a guide to this when there is time for it.

Usage examples is also provided in examples/ dir.

Command line options

        -h, --help              This help

Input:
        -c, --current           Path to current frame (png)
        -p, --previous          Path to save previous frame (used for -d)

Output:
        -o, --out               Path to save current frame to on detected motion
        -d, --diff              Path to save cleaned frame to on changed pixels

Options:
        -s, --sensitivity               Intensity treshold, a value between 0 and 255 -s
        -e, --passes            Passes, the minimum radius of an object that should be counted as an object (in pixels) -s
        -t, --tune              Get a suitable vaiable for -s
        -v, --verbose           Print interesting information along the way
        -u, --debug             Print even more interesting information along the way```

About

Simple program for continous motion detection of png images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published