Code Monkey home page Code Monkey logo

picamera-motion's Introduction

                  Lightweight python Motion Detection
                         picamera Lite version
                  -----------------------------------
Summary
-------
based on original code written by brainflakes and modified by pageauc
user utpalc rewrote motion detection using picamera stream and pageauc
modified this sample code to this example application
This code uses the picamera python libraries rather than raspistill.
Posted on Raspberry Pi forum under Lightweight Python Motion Detection
Sample video posted at http://youtu.be/ZuHAfwZlzqY
Code modified to exit image scanning loop as soon as the sensitivity value
is exceeded. This speeds taking larger photo if motion detected early in scan
This code is available on github at https://github.com/pageauc/picamera-motion
Note:
This version uses picamera python libraries but does not integrate
give synchronization.  This is basically sample code to assist development

Install Instructions
--------------------
1. Log in to RPI using putty ssh or raspberry pi console terminal session
2. To install perform the following commands

cd ~
mkdir pimotion
cd pimotion
mkdir images
sudo apt-get install python-imaging
sudo apt-get install python-picamera
wget https://raw.github.com/pageauc/picamera-motion/master/picamera-motion.py
wget https://raw.github.com/pageauc/picamera-motion/master/Readme.txt
python ./picamera-motion.py

Note: you may have to install other libraries and make sure your
raspberry pi is running a current updated version of raspbian.

Tuning
------
To change motion detection settings edit the pimotion.py file using nano
it is recommended you make a backup copy just in case.
from a logged in putty ssh or console terminal session edit using nano.  You
can also use IDLE if desired.
   
That's it
Please note this code is pretty basic but a good learning tool if
you need to implement a simple python only motion detection application
using the picamera python libraries.

Claude Pageau

picamera-motion's People

Contributors

pageauc avatar

Watchers

PSUMonkey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.