In this chapter, we will focus on building a real-time Internet-connected home security surveillance system using the BeagleBone board. Similar to previous chapters, we will use OpenCV and Python on BeagleBone with a camera connected to it. But to take the project to an advanced level, we will add a PIR sensor to the BeagleBone board and write code on it to interact with the physical world. We will get started with motion detection using PIR sensors, followed by sending e-mails from BeagleBone boards using Python. We will finish the chapter with a project, in which we will build a motion-detection security camera that will send e-mail alerts with images captured whenever motion is detected by the PIR sensor.
The contents of this chapter are divided into the following topics:
Prerequisites
PIR sensors
Motion detection using PIR sensors
Sending e-mails with attachments
Advanced project – motion detection, image capture, and alert system