Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Raspberry Pi Android Projects

You're reading from  Raspberry Pi Android Projects

Product type Book
Published in Sep 2015
Publisher
ISBN-13 9781785887024
Pages 138 pages
Edition 1st Edition
Languages
Author (1):
Gökhan Kurt Gökhan Kurt
Profile icon Gökhan Kurt

The surveillance mode


It is cool to see the streaming from your camera, but it is much more useful to be able to run it in surveillance mode. We want the camera to react to motion and save images or videos whenever motion is detected, so that we can check them later instead of keeping an eye on the video. For this purpose, we will begin installing a motion recognition software on our Pi, which is called for apparent reasons, motion:

sudo apt-get install motion

This will install the motion software and the following command will add the necessary packages to the kernel:

sudo modprobe bcm2835-v4l2

It is a good idea to put this in the /etc/rc.local file so that it can be run at startup. You should put it before the exit 0 line, though.

We will even make some configuration changes to be able to access the streaming and control features that motion provides. Edit the configuration file of motion using the following command:

sudo nano /etc/motion/motion.conf

By default, the web access to motion...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}