Naive background subtraction

Let's start the background subtraction discussion from the beginning. What does a background subtraction process look like? Consider the following image:

Naive background subtraction

The preceding image represents the background scene. Now, let's introduce a new object into this scene:

Naive background subtraction

As shown in the preceding image, there is a new object in the scene. So, if we compute the difference between this image and our background model, you should be able to identify the location of the TV remote:

The overall process looks like this:

Does it work well?

There's ...

Get OpenCV By Example 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.