Let's start the discussion from the beginning. What does a background subtraction process look like? Consider the following image:
![](https://static.packt-cdn.com/products/9781789341225/graphics/assets/3cbf0d44-4e2a-4214-a7ab-899166d16f4c.png)
The previous image represents the background scene. Now, let's introduce a new object into this scene:
![](https://static.packt-cdn.com/products/9781789341225/graphics/assets/86da43cc-6484-44cc-b145-0e022c5da798.png)
As we can see, 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:
![](https://static.packt-cdn.com/products/9781789341225/graphics/assets/f5c47d1f-cfbd-4860-a7fa-e1ed8ccf8e22.png)
The overall process looks like this:
![](https://static.packt-cdn.com/products/9781789341225/graphics/assets/e067d24c-4808-41e4-bead-526939174095.png)