O'Reilly logo

Rapid BeagleBoard Prototyping with MATLAB and Simulink by Dr.Fei Qin, Dr. Xuewu Dai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Motion detection algorithm

Now we have the video input ready to use and the video display working as well. The next step is the heart of this chapter: how to deploy a motion detection algorithm following the rapid prototype development principle.

Motion detection algorithm

Firstly, let's spend some words to introduce the frame difference-based motion detection algorithm, which is employed in this chapter. As shown in the previous figure, the motivation is very simple. If we already know the background information—for example, if the background is stationary—then for each captured frame, simply subtracting the background image yields the regions of interest, that is, the motion ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required