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 ...
Get Raspberry Pi Android Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.