Skip to content
REALTIME R-PI CAMERA IMAGE
C++ Other
  1. C++ 99.0%
  2. Other 1.0%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
HOSTAPD
WWW
bin
cron
images
.gitignore
.lastimage
CImg.h
CMakeLists.txt
CMakeLists.txt.user
README.md
config.cpp
config.h
jpeger.cpp
jpeger.h
liconfig.cpp
liconfig.h
liveimage.conf
main-old.cpp
mainn.cpp
motion.cpp
motion.h
os.h
outfilefmt.cpp
outfilefmt.h
sock.cpp
sock.h
sockserver.cpp
sockserver.h
strutils.h
v4ldevice.cpp
v4ldevice.h

README.md

LIGHTWEIGHT CAMERA MOTION DETECTION SUITABLE FOR R-PI, NANO-PI, C H I P AND SUCH,

TIME LAPSE AND MOTION CAM

NOOBS Preloaded SDCard at https://www.redypis.org

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 
./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

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

You can’t perform that action at this time.