Notes:
Background subtraction, or background differencing, is the technique that we use to detect motion in the current image.
This is generally calculated by taking the per pixel difference between a current image and a reference image.