Building a pushup counter with OpenCV and Clojure

Hello folks. I built a pushup counter with OpenCV + Clojure. Here is a video it working (please excuse my poor pushup form).

First the counter takes a raw image and subtracts out the background.