Code used in the video:
Background Subtraction: https://kylemcdonald.github.io/cv-examples/BackgroundSubtraction/
Contour Detection: https://kylemcdonald.github.io/cv-examples/ContourDetection-opencvjs/
Both put together (need to use python simple http server to run, see below): https://github.com/aaronsherwood/sensorsbodymotion/tree/master/browser/blobDetection
Python Simple HTTP server instructions:
See which version of Python you have: python -V
On Windows, you may have to install Python: https://www.python.org/downloads/windows/
First cd
to the directory where the sketch is, then:
If Python version is 3.X start your server by: python3 -m http.server
If Python version is 2.X start your server by: python -m SimpleHTTPServer
On windows try “python” instead of “python3”, or “py -3”
OpenCV js Contour Documentation:
https://docs.opencv.org/3.4/d5/daa/tutorial_js_contours_begin.html