The above examples how motion detection using a very simple concept of pixel RGBA color subtraction.
Camera on the left shows a live camera feed and the one on the right is the output of color subtraction
Detecting motion detection within a hotspot area allows us to build gesture interactions