Background Subtraction is a process to detect a movement or significant differences inside of the video frame, when compared to a reference, and to remove all the non-significant components (background). Background subtraction is applied in many areas, such as surveillance system (to effectively segment the only moving object).
- Learning Background – we captured ten background frames and calculated the mean(µ) and the standard deviation(σ) with the below equations
- We assumed the value of the background was iid-normal distribution
- First, we set the threshold of background as µ ± 2σ
- Each pixel in the background -> N ~ (µ, σ), if that pixel is part of the background, its value will lie within µ ± 2σ range 95% of the time.
- Any pixels that go beyond the threshold are considered as parts of non-background object.