/liveimage

R-PI camera motion detection, time-lapse with web interface

Primary LanguageC++

LIGHTWEIGHT CAMERA MOTION DETECTION SUITABLE FOR R-PI, NANO-Pi-NEO

TIME LAPSE AND MOTION CAM

Streams live right into the IMG HTML element < img src='http://liveimage_ip:port/?live' / >.

Acceessible direct from browser without additional web server. http://IP:PORT/?html

Time lapse snapshots

Motion Detection

Time lapse dark stop

Foliage wind elimination motion noise

Life Stream

Light weight camera designed to run on small ARM Linuxes. Plays animated jpg in the browser, Captures images when senses motion, or at certain interval based on settings. Scripts to configure a Linux ARM board equiped with a wifi into an camera wifi access point. Check each script before running in. Questions, just ask.

Demo:

https://youtu.be/gebbErEJj1A

Demo Video

Build

Web server (optional)

apt-get install lighttpd
apt-get install php5
apt-get install php5-gd php-cgi php-gd
  sudo lighttpd-enable-mod fastcgi 
  sudo lighttpd-enable-mod fastcgi-php
  sudo  /etc/init.d/lighttpd force-reload 
git clone https://github.com/comarius/liveimage
sudo apt-get install libv4l-dev
sudo apt-get install libjpeg-dev
sudo apt-get install libpng-dev
sudo apt-get install v4l-utils  (optional to adjust luminosity)
cd liveimage
cmake .
make
sudo adduser $USER video
# create a folder /data/snaps
sudo mkdir /data/snaps
sudo chown $USER:USER /data/snaps
# eventually mount a separate SDD drive to  /data/snaps
# start liveimage 
cp liveimage ./bin
cd bin
./liveimage

Tested on

  • HP x86_64 Linux with incorporated webcam
  • R-PI 3 with USB Camera
  • Nano Pi with USB camera and wifi USB dongle supporting AP
  • C.H.I.P with USB camera. The USB cable was changed to allow external power to USB camera due camera higher amperage

Configuration liveimage.conf

The configuration file should be placed in the running folder. The file has only one secion. [main] The settings are: (ask fo rmore details...)

With Lighttpd server:

make a page

  
  <html>
  <head>
  </head>
  <body bgcolor="#E6E6FA">
    <center>
<?php
      echo "<img width='320' src='http://{$_SERVER['HTTP_HOST']}:9000/?image' />";
      echo "<img width='320' src='http://{$_SERVER['HTTP_HOST']}:9000/?motion' /><hr />";
?>
    </center>
  </body>
</html>

Direct Access:

http://localhost:90000/?html
http://192.168.1.219:9000/?live
http://192.168.1.219:9000/?motion

License:

- Only for Home users / home projects. 
- Not for commercial products, any parts of the code or entirely as s product.

Foliage wind reject auto area

alt text