I almost finished an OpenFrameworks addon to handle OpenCV‘s implementation MIT’s Media Lab motion templates. Basically, motion templates keep track of the path of moving silhouettes and can be used instead of optical flow to track motion or to recognize gestures.As soon as I have the time to clean up the code I’ll post the addon; for nowhere‘s the addon and here’s a video showcasing a couple motion templates tricks: