Reader small image

You're reading from  Raspberry Pi Essentials

Product typeBook
Published inApr 2015
Publisher
ISBN-139781784396398
Edition1st Edition
Right arrow
Author (1)
Jack Creasey
Jack Creasey
author image
Jack Creasey

Jack Creasey has been in the technology industry for more than 30 years, the last 15 years as a Senior Program Manager in hardware and software design. His expertise includes designing, developing, and teaching IT courseware. He is an avid inventor and holds 13 patents in hardware and software design. After retiring early from the computing industry, Jack avidly participates in social network groups that share his passion for next generation technology solutions.
Read more about Jack Creasey

Right arrow

Project 1b – Creating a movement detector with a USB camera


For our security system to record video only when there is action, we need to detect movement. One application that does this very reliably is an application called motion.

There is a version of motion that will work with a PiCam camera, but if we use PiCam to acquire high-resolution images at high frame rates, the CPU resources required by motion will increase significantly. Instead, we will reduce the CPU usage as much as possible by detecting movement at very slow frame rates (2 fps is normally quite adequate) and use a USB webcam to do this. By separating the high-quality, high frame-rate video acquisition task from the movement detection task, we can achieve both reliable operation and low overall CPU usage.

First, let's install the motion application on the computer:

Using File Manager, browse to /home/pi/camera and then enter F4 (a shortcut to open a Terminal session with this folder as the working directory).

  1. At the command...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Raspberry Pi Essentials
Published in: Apr 2015Publisher: ISBN-13: 9781784396398

Author (1)

author image
Jack Creasey

Jack Creasey has been in the technology industry for more than 30 years, the last 15 years as a Senior Program Manager in hardware and software design. His expertise includes designing, developing, and teaching IT courseware. He is an avid inventor and holds 13 patents in hardware and software design. After retiring early from the computing industry, Jack avidly participates in social network groups that share his passion for next generation technology solutions.
Read more about Jack Creasey